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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
📊 Falcon AI — World's most transparent algo trading service ·Automated Futures strategies · 14-day Setup Guarantee. Free community & live results → thefalconai.com
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
📊 Falcon AI — World's most transparent algo trading service ·Automated Futures strategies · 14-day Setup Guarantee. Free community & live results → thefalconai.com
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.