Indicator · Pine Script v5 · On the chart

BTMM Comprehensive Risk Management

by jcortes254

BTMM Comprehensive Risk Management is an overlay indicator that calculates position sizing, stop loss levels, and multiple take profit targets based on the Beat The Market Maker methodology.

View on GitHub

GitHub stars3on the repository
Pine versionv5runs as is
Lines of code429
Settings39inputs
LicenceNone stated
Last update1 year ago10 Jul 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

BTMM Comprehensive Risk Management supports various stop loss methods including ATR, EMA, Asian Range, pattern levels, and manual pip inputs. Position sizes can be determined via fixed risk percentage, fixed amounts, Kelly criterion, or volatility adjustments. It draws risk-to-reward zone boxes, stop loss and target lines directly on the price chart, and displays an onscreen dashboard table summarizing trade parameters, daily risk limits, and position sizing details.

Details

Published by

jcortes254 on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Support & resistance, Screeners & dashboards

Markets

Forex

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Account Size ($)float10000.0account_size
Risk Per Trade (%)float1.0risk_per_trade
Max Daily Risk (%)float3.0max_risk_per_day
Use Fixed Dollar Riskboolfalseuse_fixed_dollar_risk
Fixed Dollar Risk ($)float200.0fixed_dollar_risk
Compound Profitsbooltruecompound_profits
Primary Stop Loss MethodstringATRsl_method
ATR Multiplierfloat1.5atr_multiplier
ATR Lengthint14atr_length
Manual SL (Pips)float20.0manual_sl_pips
Use Pattern Levels Overridebooltrueuse_pattern_levels
Show Stop Loss Levelsbooltrueshow_sl_levels
Show all 39 settings
SettingTypeDefaultVariable
Base R:R Ratiofloat2.0base_rr_ratio
Dynamic R:R Adjustmentbooltruedynamic_rr_adjustment
Show Multiple TP Levelsbooltrueshow_multiple_targets
TP1 R:R Ratiofloat1.0tp1_ratio
TP2 R:R Ratiofloat2.0tp2_ratio
TP3 R:R Ratiofloat3.0tp3_ratio
Position Sizing MethodstringFIXED_RISKposition_method
Fixed Lot Sizefloat0.1fixed_lot_size
Max Position Size (Lots)float2.0max_position_size
Kelly Win Ratefloat0.6kelly_win_rate
Volatility Lookback Periodint20volatility_lookback
Show Risk Management Dashboardbooltrueshow_risk_table
Show R:R Zone Boxesbooltrueshow_rr_zones
Show Risk/Reward Linesbooltrueshow_risk_levels
Show Position Informationbooltrueshow_position_info
Show Risk Statisticsbooltrueshow_statistics
Bullish Zone Colorcolorcolor.new(color.green, 75)bullish_color
Bearish Zone Colorcolorcolor.new(color.red, 75)bearish_color
Stop Loss Line Colorcolorcolor.redsl_line_color
Take Profit Line Colorcolorcolor.greentp_line_color
Line Widthint2line_width
Label Sizestringnormallabel_size
Enable Risk Management Alertsbooltrueenable_risk_alerts
Position Size Alertsbooltrueenable_position_alerts
R:R Achievement Alertsbooltrueenable_rr_alerts
Risk Breach Warningsbooltrueenable_risk_breach_alerts
Alert Frequencystringonce_per_baralert_frequency
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

575 stars

This overlay indicator scans a pasted list of symbols for ICT liquidity sweep patterns using prior swing sweeps. The screening method looks back one, two, or three swings and can list long and short signals in a results table with adjustable rows, position, an

Indicator v5 SMC / ICT / price actionScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Sweep Pattern Scanner
330 stars

This indicator monitors multiple cryptocurrency symbols for trading signals. It calculates and plots entry prices, take profit, and stop loss levels for each symbol including BTCUSDT, ETHUSDT, BNBUSDT and others. Price crossovers trigger buy, sell or close ale

Indicator v5 Support & resistanceScreeners & dashboards
Updated 2 months ago · None stated GitHub repository of Multi Alert Long/Short [Alorse]

BZ-tracker

by Allen1212
303 stars

The BZ-tracker indicator marks ARK Invest buy and sell transactions on stock charts with labels. It plots green labels for purchases and red labels for sales, each annotated with a multiplier such as X1 or X2 to show the number of ARK ETFs trading the stock on

Indicator v4 Support & resistanceScreeners & dashboards
Updated 2 years ago · None stated GitHub repository of BZ-tracker
257 stars

This indicator overlays an intraday SPX and ES chart with a midnight session range, regular-trading-hours opening levels, and a VWAP projection box. It draws the midnight high, mid, and low, flags edge rejections within an absolute tolerance, and plots optiona

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of SPX Midnight Box + Snag Logic

Golden Bullet Strategy

by TradersPost
218 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers