OPEN-SOURCE SCRIPT
Risk Co-Pilot | Position Sizing & Volatility Risk

A position-sizing and volatility-risk tool. You enter your account size and risk percent per trade; it computes how much to risk and how large a position that implies, plus a volatility state light. It does NOT generate buy or sell signals.
What it shows
- Risk $ for your chosen account size and risk percent
- ATR-based stop distance and the resulting long/short stop levels
- Position size in units so that hitting the stop loses exactly your chosen risk percent
- Volatility risk state (Normal / Elevated / Caution) from the ATR percentile, a reminder to size down when volatility is high
Honest by design
- No buy/sell signals, no auto-execution. It sizes risk; you decide and execute.
- Non-repainting: every value is a function of confirmed bars.
- The position size assumes a 1:1 price-to-PnL instrument. Adjust for pip value (forex) or point value (futures).
Open-source and MIT licensed.
Disclaimer: impersonal educational and risk tool. This is not investment advice, not a personalised recommendation, and carries no performance guarantee. Past results do not predict future results. You are solely responsible for your own trading decisions.
What it shows
- Risk $ for your chosen account size and risk percent
- ATR-based stop distance and the resulting long/short stop levels
- Position size in units so that hitting the stop loses exactly your chosen risk percent
- Volatility risk state (Normal / Elevated / Caution) from the ATR percentile, a reminder to size down when volatility is high
Honest by design
- No buy/sell signals, no auto-execution. It sizes risk; you decide and execute.
- Non-repainting: every value is a function of confirmed bars.
- The position size assumes a 1:1 price-to-PnL instrument. Adjust for pip value (forex) or point value (futures).
Open-source and MIT licensed.
Disclaimer: impersonal educational and risk tool. This is not investment advice, not a personalised recommendation, and carries no performance guarantee. Past results do not predict future results. You are solely responsible for your own trading decisions.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.