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.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.