OPEN-SOURCE SCRIPT
Custom Position Size Calculator (v2)

Custom Position Size Calculator (v2)
Simple and accurate position size calculator for discretionary traders.
Just enter your account size, risk %, pip value, TP and SL in pips — and it instantly shows:
• Exact lot size based on your risk
• Risk/Reward ratio
• Potential profit
• How much you’re actually risking in money
• The win rate you need just to break even
Works on basically any instrument. Just set the correct pip value (most USD pairs = 10, Gold = 1, etc.).
Everything updates live as soon as you change an input. No need to leave the chart or open some external calculator.
Quick guide:
1. Put in your account size
2. Choose how much % you’re willing to risk (e.g. 0.5–1%)
3. Set the pip value of the instrument you’re trading
4. Enter your TP and SL in pips (e.g. use the TradingView position tool)
That’s it. It does the rest.
Useful whether you’re just starting out and want to size trades properly, or you’ve been trading for years and just want something fast and clean on the chart.
Simple and accurate position size calculator for discretionary traders.
Just enter your account size, risk %, pip value, TP and SL in pips — and it instantly shows:
• Exact lot size based on your risk
• Risk/Reward ratio
• Potential profit
• How much you’re actually risking in money
• The win rate you need just to break even
Works on basically any instrument. Just set the correct pip value (most USD pairs = 10, Gold = 1, etc.).
Everything updates live as soon as you change an input. No need to leave the chart or open some external calculator.
Quick guide:
1. Put in your account size
2. Choose how much % you’re willing to risk (e.g. 0.5–1%)
3. Set the pip value of the instrument you’re trading
4. Enter your TP and SL in pips (e.g. use the TradingView position tool)
That’s it. It does the rest.
Useful whether you’re just starting out and want to size trades properly, or you’ve been trading for years and just want something fast and clean on the chart.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.