PROTECTED SOURCE SCRIPT
ATR Adaptive Position Sizer (APS) - OrbitPips

ATR Adaptive Position Sizer (APS)
Smart lot-calculator & risk dashboard for Forex, Crypto, Metals, Indices and Stocks
Why use APS?
Core inputs
Account Equity ($) – current account balance
Risk % per Trade – how much of equity you’re willing to risk
ATR Length & SL Multiplier (k) – defines the ATR stop distance
Commission & Spread – set once to match your broker
Max Leverage & Max Lot Cap – optional safety ceilings
Table Font Size – “Large” by default for readability (switch to Normal if you prefer)
Table at a glance
• Recommended Size
• Actual Risk – final % and USD after rounding and costs
• ATR (14) – live ATR value
• Stop Loss LONG / SHORT – price levels for both directions
• Cost per Trade – commission + spread at that size
• Leverage Used – colour-graded as you approach the limit
What’s new in v3.0
Disclaimer
APS is a calculation tool, not financial advice. Test on a demo account before live trading and ensure it fits your personal risk plan.
Happy and safer trading 🪐
Smart lot-calculator & risk dashboard for Forex, Crypto, Metals, Indices and Stocks
Why use APS?
- Instant position sizing – enter Equity & Risk %, APS outputs the exact lot size (no more spreadsheets).
- ATR-based stops – size adapts automatically to current volatility: SL = ATR × k.
- True-risk aware – commissions, spread and the 0.01-lot tick are baked into the maths; the table shows the real % / USD at risk.
- Multi-asset ready – auto-detects pip/tick value for FX, Crypto, CFDs, etc.
- Live safety alerts – leverage limit, risk deviation, lot-cap and volatility spikes.
Core inputs
Account Equity ($) – current account balance
Risk % per Trade – how much of equity you’re willing to risk
ATR Length & SL Multiplier (k) – defines the ATR stop distance
Commission & Spread – set once to match your broker
Max Leverage & Max Lot Cap – optional safety ceilings
Table Font Size – “Large” by default for readability (switch to Normal if you prefer)
Table at a glance
• Recommended Size
• Actual Risk – final % and USD after rounding and costs
• ATR (14) – live ATR value
• Stop Loss LONG / SHORT – price levels for both directions
• Cost per Trade – commission + spread at that size
• Leverage Used – colour-graded as you approach the limit
What’s new in v3.0
- Large font as default with Normal/Large switch
- ATR row added to the info panel
- Inputs tab cleaned; rarely used settings moved to code
Disclaimer
APS is a calculation tool, not financial advice. Test on a demo account before live trading and ensure it fits your personal risk plan.
Happy and safer trading 🪐
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。