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.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.