OPEN-SOURCE SCRIPT
Risk-Managed Strategy

Risk-Managed Strategy is a complete algorithmic trading framework that blends multiple technical systems—RSI, MACD, EMA crossover, Bollinger Bands, and SuperTrend—into a unified signal engine.
The script dynamically calculates position size based on capital, risk percentage, ATR-based stop loss, and reward-ratio targets.
It features:
-Multi-indicator signal voting (BUY / SELL / NEUTRAL)
- Dynamic capital tracking across trades
- Automatic position sizing based on risk amount
- Auto-generated Stop Loss and Take Profit using recent highs/lows
- On-chart SL, TP, and CMP plotting for clarity
This strategy is designed for traders who want a professional, rule-based system that balances accuracy, risk control, and automation.
Disclaimer:
The information provided is for educational and informational purposes only. It does not constitute financial or investment advice. Trading and investing in stocks involves risk, including the possible loss of capital. Any decisions to buy, sell, or hold securities are the sole responsibility of the reader. Past performance is not indicative of future results. Always do your own research and, if necessary, consult with a licensed financial advisor before making investment decisions.
The script dynamically calculates position size based on capital, risk percentage, ATR-based stop loss, and reward-ratio targets.
It features:
-Multi-indicator signal voting (BUY / SELL / NEUTRAL)
- Dynamic capital tracking across trades
- Automatic position sizing based on risk amount
- Auto-generated Stop Loss and Take Profit using recent highs/lows
- On-chart SL, TP, and CMP plotting for clarity
This strategy is designed for traders who want a professional, rule-based system that balances accuracy, risk control, and automation.
Disclaimer:
The information provided is for educational and informational purposes only. It does not constitute financial or investment advice. Trading and investing in stocks involves risk, including the possible loss of capital. Any decisions to buy, sell, or hold securities are the sole responsibility of the reader. Past performance is not indicative of future results. Always do your own research and, if necessary, consult with a licensed financial advisor before making investment 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.