OPEN-SOURCE SCRIPT
Custom Position Size Calculator

A clean and precise position size calculator designed for discretionary traders.
Simply enter your account size, the percentage of risk you want to take on the trade, the pip value of the instrument, and your Take Profit & Stop Loss in pips.
The indicator instantly calculates:
• Exact lot size based on your risk
• Risk/Reward ratio
• Potential profit at Take Profit
• Exact risk amount in currency
• Break-even win rate required for the trade
Works on any instrument (Forex, Gold, Indices, etc.) — just adjust the pip value accordingly (e.g. 10 for most USD pairs, 1 for XAUUSD).
All values update in real time when you change the inputs. Perfect for quick and accurate position sizing without leaving the chart.
Simply enter your account size, the percentage of risk you want to take on the trade, the pip value of the instrument, and your Take Profit & Stop Loss in pips.
The indicator instantly calculates:
• Exact lot size based on your risk
• Risk/Reward ratio
• Potential profit at Take Profit
• Exact risk amount in currency
• Break-even win rate required for the trade
Works on any instrument (Forex, Gold, Indices, etc.) — just adjust the pip value accordingly (e.g. 10 for most USD pairs, 1 for XAUUSD).
All values update in real time when you change the inputs. Perfect for quick and accurate position sizing without leaving the chart.
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.