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.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.