OPEN-SOURCE SCRIPT
Position Size Calculator + Live R/R Panel — SMC/ICT (@PueblaATH)

Position Size + Live R/R Panel — SMC/ICT (PueblaATH)
Position Size + Live R/R Panel — SMC/ICT (PueblaATH) is a professional-grade risk management and execution module built for Smart Money Concepts (SMC) and ICT Traders who require accurate, repeatable, institution-style trade planning.
This tool delivers precise position sizing, R:R modeling, leverage and margin projections, fee-adjusted PnL outcomes, and real-time execution metrics—all directly on the chart. Optimized for crypto, forex, and futures, it provides scalpers, day traders, and swing traders with the clarity needed to execute high-quality trades with confidence and consistency.
What the Indicator Does
Institutional Position Sizing Engine
Advanced Risk/Reward & Profit Modeling
Execution Planning with Draggable Levels
Precise modeling of real exchange fee structures
Leverage & Margin Forecasting
Clean HUD Panel for Rapid Decision-Making
Optimized for SMC & ICT Workflows
How to Use It
Originality & Credits
This script is an original creation by PueblaATH, released under the MPL 2.0 license.
It does not copy, modify, or repackage any existing TradingView code.
All logic—including the fee engine, margin calculator, responsive HUD, dynamic risk model, and visual execution system—is authored specifically for this indicator.
Position Size + Live R/R Panel — SMC/ICT (PueblaATH) is a professional-grade risk management and execution module built for Smart Money Concepts (SMC) and ICT Traders who require accurate, repeatable, institution-style trade planning.
This tool delivers precise position sizing, R:R modeling, leverage and margin projections, fee-adjusted PnL outcomes, and real-time execution metrics—all directly on the chart. Optimized for crypto, forex, and futures, it provides scalpers, day traders, and swing traders with the clarity needed to execute high-quality trades with confidence and consistency.
What the Indicator Does
Institutional Position Sizing Engine
- Calculates position size based on account balance, % risk, and SL distance.
- Supports custom minimum lot size rounding across crypto, FX, indices, and derivatives.
- Intelligent direction logic (Auto / Long / Short) based on SMC/ICT structure.
Advanced Risk/Reward & Profit Modeling
- Real-time R:R ratio using actual rounded position size.
- Live PnL readout that updates with price movements.
- Gross & net profit projections with full fee deduction.
Execution Planning with Draggable Levels
- Entry, SL, and TP levels fully draggable for fast scenario modeling.
- Automatic projected lines backward/forward with clean label alignment.
- TP and SL tags include % movement from Entry, ideal for SMC/ICT journaling.
Precise modeling of real exchange fee structures
- Maker fee per side
- Taker fee per side
- Mixed fee modes (Maker entry, Taker exit, Average, etc.)
Leverage & Margin Forecasting
- Margin requirements displayed for 3 customizable leverage settings.
- Helps traders understand capital commitment before executing the trade.
- Useful for futures, crypto perps, and CFD setups.
Clean HUD Panel for Rapid Decision-Making
- A full professional trading panel displays:
- Target & actual risk
- Position size
- Entry / SL / TP
- TP/SL percentage distance
- Gross profit
- Net profit (after fees)
- Fees @ TP and @ SL
- Live PnL
- Margin requirements
Optimized for SMC & ICT Workflows
- Perfect for traders using:
- Breakers, FVGs, OBs
- Liquidity sweeps
- Session models
- Precision entries (OTE, Displacement, Rebalancing)
- Leverage-based execution (crypto perps, futures)
How to Use It
- Attach the indicator to your chart.
- Set account balance, risk %, fee model, and leverage presets.
- Drag Entry, SL, and TP to shape the setup.
- View instant calculations of: Position size; R:R; Net PnL after fees; Margin required
- Use it as your pre-trade checklist & execution model.
Originality & Credits
This script is an original creation by PueblaATH, released under the MPL 2.0 license.
It does not copy, modify, or repackage any existing TradingView code.
All logic—including the fee engine, margin calculator, responsive HUD, dynamic risk model, and visual execution system—is authored specifically for this indicator.
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.