PROTECTED SOURCE SCRIPT
MultiRisk Calc

Description
MultiRisk Calc is a risk-sizing helper built to work next to TradingView’s built-in drawing tools (like Long/Short Position or a Box). Pine scripts can’t read drawing objects directly, so the workflow is simple: drag your drawing to your intended Entry/Stop, then type those two prices into the indicator. The script then calculates position size for multiple futures contracts — and optionally MetaTrader-style LOT sizing for CFDs/FX.
It also draws a small semi-transparent red box (default 10 bars wide) with a fixed label placed to the right side of the chart, visually aligned with your position tool.
Key Features
Futures contract sizing (Micros + Minis)
Calculates contract count needed to target a dollar risk amount (default $300).
Supports toggles for:
MNQ / NQ
MES / ES
MGC / GC
MYM / YM
Each enabled line displays:
Suggested contracts
Total risk for that contract count
Risk for 1 contract (shown on the right)
Smart rounding (avoids misleading “1 contract”)
Includes an Overshoot Threshold (default $50):
If rounding up to the next contract overshoots the target by more than the threshold, the script rounds down instead.
This can result in 0 contracts when 1 contract would be far above your target risk (by design).
Optional LOT sizing (MetaTrader / CFD / FX)
Adds an optional LOT calculation line (toggleable).
Uses manual broker inputs (no presets) to avoid incorrect sizing across different brokers:
Contract size (units per 1.00 lot)
Conversion multiplier to account currency
Lot step (e.g., 0.01)
Outputs:
Suggested lots
Total risk for that lot size
Risk for 1.00 lot
Important: LOT sizing varies heavily across brokers (CFDs/indices especially). This script requires you to enter your broker’s correct contract specification values. It does not “auto-detect” broker settings.
Auto-fill (once) + Locked Levels
If you don’t enter values immediately, the indicator can:
Auto-fill Entry = current price
Auto-fill Stop = X ticks away
…and then lock those values so they do not move with price.
How to Use
Place a TradingView drawing (Long/Short Position or Box) and drag it to match your planned Entry and Stop.
Open the indicator settings and type:
Entry
Stop (SL)
Set Target risk $ (N).
Enable the instruments you want (and optionally LOT sizing).
Notes / Limitations
Pine scripts cannot read TradingView drawings automatically — manual Entry/Stop input is required.
Futures values are hardcoded for the supported contracts (tick size + $/tick).
LOT sizing is manual by design to prevent broker-to-broker mismatches.
MultiRisk Calc is a risk-sizing helper built to work next to TradingView’s built-in drawing tools (like Long/Short Position or a Box). Pine scripts can’t read drawing objects directly, so the workflow is simple: drag your drawing to your intended Entry/Stop, then type those two prices into the indicator. The script then calculates position size for multiple futures contracts — and optionally MetaTrader-style LOT sizing for CFDs/FX.
It also draws a small semi-transparent red box (default 10 bars wide) with a fixed label placed to the right side of the chart, visually aligned with your position tool.
Key Features
Futures contract sizing (Micros + Minis)
Calculates contract count needed to target a dollar risk amount (default $300).
Supports toggles for:
MNQ / NQ
MES / ES
MGC / GC
MYM / YM
Each enabled line displays:
Suggested contracts
Total risk for that contract count
Risk for 1 contract (shown on the right)
Smart rounding (avoids misleading “1 contract”)
Includes an Overshoot Threshold (default $50):
If rounding up to the next contract overshoots the target by more than the threshold, the script rounds down instead.
This can result in 0 contracts when 1 contract would be far above your target risk (by design).
Optional LOT sizing (MetaTrader / CFD / FX)
Adds an optional LOT calculation line (toggleable).
Uses manual broker inputs (no presets) to avoid incorrect sizing across different brokers:
Contract size (units per 1.00 lot)
Conversion multiplier to account currency
Lot step (e.g., 0.01)
Outputs:
Suggested lots
Total risk for that lot size
Risk for 1.00 lot
Important: LOT sizing varies heavily across brokers (CFDs/indices especially). This script requires you to enter your broker’s correct contract specification values. It does not “auto-detect” broker settings.
Auto-fill (once) + Locked Levels
If you don’t enter values immediately, the indicator can:
Auto-fill Entry = current price
Auto-fill Stop = X ticks away
…and then lock those values so they do not move with price.
How to Use
Place a TradingView drawing (Long/Short Position or Box) and drag it to match your planned Entry and Stop.
Open the indicator settings and type:
Entry
Stop (SL)
Set Target risk $ (N).
Enable the instruments you want (and optionally LOT sizing).
Notes / Limitations
Pine scripts cannot read TradingView drawings automatically — manual Entry/Stop input is required.
Futures values are hardcoded for the supported contracts (tick size + $/tick).
LOT sizing is manual by design to prevent broker-to-broker mismatches.
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 ただし、制限なく自由に使用できます – 詳細はこちらでご確認ください。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 ただし、制限なく自由に使用できます – 詳細はこちらでご確認ください。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。