OPEN-SOURCE SCRIPT
EvilAI | Position Sizer

Simple position sizing for futures traders. Automatically calculates optimal contract size based on ATR volatility and your risk parameters.
█ FEATURES
- Dynamic ATR-based stop calculation
- Auto contract selection (GC/MGC, NQ/MNQ)
- Real capital awareness for prop firm accounts
- Survival analysis — see how many losses until drawdown limits
- Min/max contract constraints with visual warnings
█ DESIGNED FOR
Prop firm traders (FundedNext, Topstep, Apex) who need precise risk management with strict drawdown rules. Works with any futures instrument — preconfigured for Gold and Nasdaq.
█ HOW IT WORKS
1. Set your daily drawdown limit (your REAL capital)
2. Set your risk % per trade
3. The indicator calculates position size based on current ATR
4. Auto mode selects micro vs full contracts intelligently
█ DISPLAY
- Compact mode: Just the essentials
- Full mode: Complete risk breakdown
- Color-coded warnings (green/yellow/red)
Stop blowing accounts. Size positions properly.
█ FEATURES
- Dynamic ATR-based stop calculation
- Auto contract selection (GC/MGC, NQ/MNQ)
- Real capital awareness for prop firm accounts
- Survival analysis — see how many losses until drawdown limits
- Min/max contract constraints with visual warnings
█ DESIGNED FOR
Prop firm traders (FundedNext, Topstep, Apex) who need precise risk management with strict drawdown rules. Works with any futures instrument — preconfigured for Gold and Nasdaq.
█ HOW IT WORKS
1. Set your daily drawdown limit (your REAL capital)
2. Set your risk % per trade
3. The indicator calculates position size based on current ATR
4. Auto mode selects micro vs full contracts intelligently
█ DISPLAY
- Compact mode: Just the essentials
- Full mode: Complete risk breakdown
- Color-coded warnings (green/yellow/red)
Stop blowing accounts. Size positions properly.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.