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. Подробнее читайте в Условиях использования.