OPEN-SOURCE SCRIPT
Risk & Position-Size Calculator | Falcon AI

Works out how many contracts to trade so that being stopped out costs the dollar amount you actually chose to risk.
Enter your account size and risk percentage, set the stop as either a manual point distance or an ATR multiple, and the script returns the contract count. It auto-detects the point value of the symbol you are on, so you are not hand-converting ticks to dollars or mixing up micro and full-size contract multipliers, which is where most sizing mistakes come from.
It also shows a guardrail panel for anyone trading a funded or evaluation account: how many consecutive losing trades at your current size before you hit the daily-loss limit, and how many before a trailing drawdown is breached. Those two numbers are usually the difference between a plan that survives a bad day and one that does not.
Settings: account size, risk per trade (%), stop mode (manual points or ATR-based), ATR length and multiple, max daily loss, trailing drawdown, panel position, text size, accent colour, optional prior-day high/low levels.
This script does NOT place trades, does NOT backtest, and contains no entry or exit logic. It is a calculator that reads your inputs and does the arithmetic. Your entry, your risk.
Educational tool only. Not financial advice. Correct position sizing does not prevent losses, it only makes the size of them deliberate.
Enter your account size and risk percentage, set the stop as either a manual point distance or an ATR multiple, and the script returns the contract count. It auto-detects the point value of the symbol you are on, so you are not hand-converting ticks to dollars or mixing up micro and full-size contract multipliers, which is where most sizing mistakes come from.
It also shows a guardrail panel for anyone trading a funded or evaluation account: how many consecutive losing trades at your current size before you hit the daily-loss limit, and how many before a trailing drawdown is breached. Those two numbers are usually the difference between a plan that survives a bad day and one that does not.
Settings: account size, risk per trade (%), stop mode (manual points or ATR-based), ATR length and multiple, max daily loss, trailing drawdown, panel position, text size, accent colour, optional prior-day high/low levels.
This script does NOT place trades, does NOT backtest, and contains no entry or exit logic. It is a calculator that reads your inputs and does the arithmetic. Your entry, your risk.
Educational tool only. Not financial advice. Correct position sizing does not prevent losses, it only makes the size of them deliberate.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
📊 Falcon AI — World's most transparent algo trading service ·Automated Futures strategies · 14-day Setup Guarantee. Free community & live results → thefalconai.com
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
📊 Falcon AI — World's most transparent algo trading service ·Automated Futures strategies · 14-day Setup Guarantee. Free community & live results → thefalconai.com
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。