OPEN-SOURCE SCRIPT
Swing Impulse Fib Reversal + Structure Trail v6 (Fixed final)

Auto RRR 1:1 1:2 1:3 Trading Script (Pine Script v6)
Take your trading to the next level with this fully automated Pine Script strategy designed for TradingView. The script enters trades automatically based on bullish and bearish price signals, and manages risk and reward with precision using predefined 1:1, 1:2, and 1:3 RRR targets.
Key Features:
Automatic Entries: Trades are placed automatically when bullish or bearish conditions are met.
Dynamic SL and TP: Stop-loss is calculated using ATR, and three take profit levels are set automatically at 1:1, 1:2, and 1:3 risk/reward ratios.
Partial Take Profits: Supports splitting positions into multiple TP levels with customizable percentages.
Trailing Stop: Moves stop-loss to break-even or to TP1 once it’s reached, locking in profits.
Visual Aids: Shows SL and TP levels directly on the chart for easy reference.
Simple Configuration: Adjustable ATR multiplier, number of TPs, partial percentages, and trailing parameters.
Perfect for scalpers and swing traders alike, this script helps automate trade management while maintaining flexibility and clarity. Whether you’re testing strategies or trading live, it ensures you capture profits efficiently while controlling risk.
Compatible: TradingView Pine Script v6
Take your trading to the next level with this fully automated Pine Script strategy designed for TradingView. The script enters trades automatically based on bullish and bearish price signals, and manages risk and reward with precision using predefined 1:1, 1:2, and 1:3 RRR targets.
Key Features:
Automatic Entries: Trades are placed automatically when bullish or bearish conditions are met.
Dynamic SL and TP: Stop-loss is calculated using ATR, and three take profit levels are set automatically at 1:1, 1:2, and 1:3 risk/reward ratios.
Partial Take Profits: Supports splitting positions into multiple TP levels with customizable percentages.
Trailing Stop: Moves stop-loss to break-even or to TP1 once it’s reached, locking in profits.
Visual Aids: Shows SL and TP levels directly on the chart for easy reference.
Simple Configuration: Adjustable ATR multiplier, number of TPs, partial percentages, and trailing parameters.
Perfect for scalpers and swing traders alike, this script helps automate trade management while maintaining flexibility and clarity. Whether you’re testing strategies or trading live, it ensures you capture profits efficiently while controlling risk.
Compatible: TradingView Pine Script v6
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.