OPEN-SOURCE SCRIPT
Stochastic Trend Signal with MultiTF Filter

Indicator Overview – Multi-Timeframe Stochastic Signal
This custom TradingView indicator combines multi-timeframe Stochastic analysis to generate high-probability, trend-following trading signals. It integrates:
Stochastic on the current timeframe to identify potential entry zones (overbought/oversold).
Stochastic on the 1D (daily) timeframe to confirm short-term trend direction.
Stochastic on the 1W (weekly) timeframe to filter out signals that go against the broader market trend.
🔔 Buy signals are triggered only when:
1D Stochastic > 50 (bullish bias),
Current timeframe Stochastic ≤ 20 (oversold),
After the first bullish candle,
And 1W Stochastic does not contradict the direction (must not be bearish).
🔻 Sell signals are triggered only when:
1D Stochastic < 50 (bearish bias),
Current timeframe Stochastic ≥ 80 (overbought),
After the first bearish candle,
And 1W Stochastic does not contradict the direction (must not be bullish).
The indicator also includes visual highlights:
✅ Green or red background when 1D and 1W trends align clearly.
⚠️ Gray background when 1D and 1W trends conflict — a warning to avoid low-probability setups.
📌 This indicator works best on the 4-hour (H4) timeframe, offering a balanced view between short-term signals and higher timeframe trend filters.
This custom TradingView indicator combines multi-timeframe Stochastic analysis to generate high-probability, trend-following trading signals. It integrates:
Stochastic on the current timeframe to identify potential entry zones (overbought/oversold).
Stochastic on the 1D (daily) timeframe to confirm short-term trend direction.
Stochastic on the 1W (weekly) timeframe to filter out signals that go against the broader market trend.
🔔 Buy signals are triggered only when:
1D Stochastic > 50 (bullish bias),
Current timeframe Stochastic ≤ 20 (oversold),
After the first bullish candle,
And 1W Stochastic does not contradict the direction (must not be bearish).
🔻 Sell signals are triggered only when:
1D Stochastic < 50 (bearish bias),
Current timeframe Stochastic ≥ 80 (overbought),
After the first bearish candle,
And 1W Stochastic does not contradict the direction (must not be bullish).
The indicator also includes visual highlights:
✅ Green or red background when 1D and 1W trends align clearly.
⚠️ Gray background when 1D and 1W trends conflict — a warning to avoid low-probability setups.
📌 This indicator works best on the 4-hour (H4) timeframe, offering a balanced view between short-term signals and higher timeframe trend filters.
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.