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 🪐
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.