OPEN-SOURCE SCRIPT

Custom Position Size Calculator

276
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.

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.