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.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
📊 Falcon AI — World's most transparent algo trading service ·Automated Futures strategies · 14-day Setup Guarantee. Free community & live results → thefalconai.com
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
📊 Falcon AI — World's most transparent algo trading service ·Automated Futures strategies · 14-day Setup Guarantee. Free community & live results → thefalconai.com
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.