OPEN-SOURCE SCRIPT
Black Tie ATR + Position Sizer

Multi-timeframe ATR with a built-in position sizing calculator. Computes the position size required to risk a fixed percentage of your account, given an ATR-based stop-loss distance. Displays SL distance, risk in account currency, and projected profit at three R:R targets.
This is for traders who size every position by risk, not by gut feeling.
WHAT IT SHOWS
A table on the chart with: current ATR value, SL distance in price units, account size, risk percentage, risk amount in account currency, position size (in the correct unit for your instrument), total notional value, and projected profit at TP1 / TP2 / TP3.
Optional preview lines on the chart show where the long SL and short SL would sit at the current price given the configured ATR multiplier. These lines are hypothetical references, not trade signals.
INSTRUMENT-AWARE POSITION SIZING
The indicator detects the instrument type and displays position size in the unit your broker actually uses:
Forex pairs: standard lots, mini lots, and micro lots (1 standard lot = 100,000 units).
Gold (XAUUSD): standard lots, mini lots, and micro lots (1 standard lot = 100 oz).
Silver (XAGUSD): standard lots, mini lots, and micro lots (1 standard lot = 5,000 oz).
Crypto, stocks, and indices: contracts, shares, or units as appropriate.
Detection is automatic but can be overridden manually if your symbol naming is non-standard.
ALGORITHM
Position size is computed as Risk Amount / SL Distance, then converted to the appropriate trading unit. The SL distance is ATR multiplied by the SL ATR Multiplier. The risk amount is account size multiplied by the risk percentage divided by 100.
The Risk classification field labels the configuration as Conservative (under 0.5%), Standard (0.5-1%), Aggressive (1-2%), or HIGH RISK (over 2%) based on the input. The professional standard is 0.5-1% per trade.
USAGE
Set your account size and the percentage you risk per trade. Adjust the ATR multiplier to match your typical stop-loss distance. The table will display the position size you should enter in your broker's order ticket on the next trade.
SETTINGS
ATR Timeframe lets you compute ATR on a higher timeframe than the chart (useful for swing position sizing on intraday charts).
ATR Period and Smoothing match standard ATR conventions (default RMA, 14).
SL ATR Multiplier defaults to 1.5; lower for tighter stops, higher for more breathing room.
TP1 / TP2 / TP3 R:R are configurable.
Account currency display can be set to USD, EUR, GBP, JPY, AUD, CAD, or CHF.
Note on cross-currency: calculations assume 1:1 conversion to the instrument's quote currency. On cross-currency forex pairs, verify the conversion rate manually with your broker.
This is for traders who size every position by risk, not by gut feeling.
WHAT IT SHOWS
A table on the chart with: current ATR value, SL distance in price units, account size, risk percentage, risk amount in account currency, position size (in the correct unit for your instrument), total notional value, and projected profit at TP1 / TP2 / TP3.
Optional preview lines on the chart show where the long SL and short SL would sit at the current price given the configured ATR multiplier. These lines are hypothetical references, not trade signals.
INSTRUMENT-AWARE POSITION SIZING
The indicator detects the instrument type and displays position size in the unit your broker actually uses:
Forex pairs: standard lots, mini lots, and micro lots (1 standard lot = 100,000 units).
Gold (XAUUSD): standard lots, mini lots, and micro lots (1 standard lot = 100 oz).
Silver (XAGUSD): standard lots, mini lots, and micro lots (1 standard lot = 5,000 oz).
Crypto, stocks, and indices: contracts, shares, or units as appropriate.
Detection is automatic but can be overridden manually if your symbol naming is non-standard.
ALGORITHM
Position size is computed as Risk Amount / SL Distance, then converted to the appropriate trading unit. The SL distance is ATR multiplied by the SL ATR Multiplier. The risk amount is account size multiplied by the risk percentage divided by 100.
The Risk classification field labels the configuration as Conservative (under 0.5%), Standard (0.5-1%), Aggressive (1-2%), or HIGH RISK (over 2%) based on the input. The professional standard is 0.5-1% per trade.
USAGE
Set your account size and the percentage you risk per trade. Adjust the ATR multiplier to match your typical stop-loss distance. The table will display the position size you should enter in your broker's order ticket on the next trade.
SETTINGS
ATR Timeframe lets you compute ATR on a higher timeframe than the chart (useful for swing position sizing on intraday charts).
ATR Period and Smoothing match standard ATR conventions (default RMA, 14).
SL ATR Multiplier defaults to 1.5; lower for tighter stops, higher for more breathing room.
TP1 / TP2 / TP3 R:R are configurable.
Account currency display can be set to USD, EUR, GBP, JPY, AUD, CAD, or CHF.
Note on cross-currency: calculations assume 1:1 conversion to the instrument's quote currency. On cross-currency forex pairs, verify the conversion rate manually with your broker.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
Get notified when I release a new free indicator → blacktiereport.com/. No signals, no Discord, no copy trades. Educational use only.
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
Get notified when I release a new free indicator → blacktiereport.com/. No signals, no Discord, no copy trades. Educational use only.
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。