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.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。