OPEN-SOURCE SCRIPT
Position Size Calculator Plus

Position Size Calculator Plus
A visual trade planning tool designed to help traders calculate precise position sizing directly on the chart using risk-based logic.
This indicator plots your entry, stop loss, and target, while automatically calculating:
Position size based on risk %
Risk-to-reward ratio (R:R)
Stop and target distance (price + %)
Required margin based on leverage
Cash risk at stop loss
Projected profit at target
Estimated lot size
⚙️ Features
Account presets: 25K / 50K / 100K / Custom
Adjustable risk percentage
Leverage-based margin calculation (ideal for prop firm trading)
Real-time R:R visualization
Clean on-chart labels for:
Entry
Stop Loss
Target
Tooltip summary for quick trade evaluation
🎯 How to Use
Enter your entry, stop loss, and target price
Select your account size (or custom balance)
Set your risk % and leverage
Instantly view position size, margin, and R:R directly on the chart
🧠 Credits
Original script by zzzcrypto123
Modified and enhanced by Luckyjimbob111
Licensed under the Mozilla Public License 2.0
⚠️ Disclaimer
This tool is for educational purposes only and does not constitute financial advice. Always manage your own risk.
A visual trade planning tool designed to help traders calculate precise position sizing directly on the chart using risk-based logic.
This indicator plots your entry, stop loss, and target, while automatically calculating:
Position size based on risk %
Risk-to-reward ratio (R:R)
Stop and target distance (price + %)
Required margin based on leverage
Cash risk at stop loss
Projected profit at target
Estimated lot size
⚙️ Features
Account presets: 25K / 50K / 100K / Custom
Adjustable risk percentage
Leverage-based margin calculation (ideal for prop firm trading)
Real-time R:R visualization
Clean on-chart labels for:
Entry
Stop Loss
Target
Tooltip summary for quick trade evaluation
🎯 How to Use
Enter your entry, stop loss, and target price
Select your account size (or custom balance)
Set your risk % and leverage
Instantly view position size, margin, and R:R directly on the chart
🧠 Credits
Original script by zzzcrypto123
Modified and enhanced by Luckyjimbob111
Licensed under the Mozilla Public License 2.0
⚠️ Disclaimer
This tool is for educational purposes only and does not constitute financial advice. Always manage your own risk.
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.