OPEN-SOURCE SCRIPT

Risk Co-Pilot | Position Sizing & Volatility Risk

168
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.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.