OPEN-SOURCE SCRIPT
Second chart

This is a trend-following momentum confirmation indicator designed to filter trades in the direction of the dominant trend while timing entries using RSI momentum shifts.
Best suited for:
✅ Forex & Crypto
✅ 5m – 1H timeframes
✅ Trend continuation strategies
⚙ Inputs Explained
▸ Trend MA Length
Controls the EMA trend filter
Lower value (20–30) → faster, more signals
Higher value (50–100) → slower, stronger trend filter
▸ RSI Length
Controls responsiveness of momentum
Standard setting: 14
Lower → aggressive entries
Higher → conservative entries
▸ Show Buy/Sell Signals
ON → Displays BUY/SELL labels
OFF → Hides all trade signals
▸ Trend Background
ON → Green = Bullish / Red = Bearish
OFF → Clean chart mode
🧠 Signal Logic Breakdown
Best suited for:
✅ Forex & Crypto
✅ 5m – 1H timeframes
✅ Trend continuation strategies
⚙ Inputs Explained
▸ Trend MA Length
Controls the EMA trend filter
Lower value (20–30) → faster, more signals
Higher value (50–100) → slower, stronger trend filter
▸ RSI Length
Controls responsiveness of momentum
Standard setting: 14
Lower → aggressive entries
Higher → conservative entries
▸ Show Buy/Sell Signals
ON → Displays BUY/SELL labels
OFF → Hides all trade signals
▸ Trend Background
ON → Green = Bullish / Red = Bearish
OFF → Clean chart mode
🧠 Signal Logic Breakdown
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.