OPEN-SOURCE SCRIPT
Dual Stochastic Enhanced (with Presets giua64)

Script Title: Dual Stochastic Enhanced (with Presets giua64)
Overview:
This indicator enhances the traditional Dual Stochastic strategy, aiming to provide more filtered and potentially reliable trading signals. By integrating dynamic overbought/oversold levels via Bollinger Bands on the slow stochastic, a trend filter based on a moving average, momentum confirmation via RSI, and user-friendly selectable presets, "Dual Stochastic Enhanced" seeks to offer a more robust approach to identifying potential entry points.
Key Features:
Dual Stochastics: Utilizes a slow stochastic (configurable, e.g., 14 periods) as a context filter and a fast stochastic (configurable, e.g., 5 periods) as a signal trigger.
Bollinger Bands on Slow Stochastic: Instead of fixed overbought/oversold levels (80/20), Bollinger Bands are applied to the %K line of the slow stochastic. This creates dynamic zones that adapt to the stochastic's own volatility.
Trend Filter: A moving average (configurable type and length, e.g., EMA 100 as seen in the example chart for general context) on the price helps filter signals, allowing only trades aligned with the prevailing trend.
RSI Confirmation: An RSI oscillator (configurable length, e.g., 14 periods) is used to confirm momentum. Signals require the RSI to cross certain thresholds to validate the strength of the move.
User Presets: Includes presets for "Scalping," "Intraday," and "Swing trading," which quickly set all key parameters to suit different styles and timeframes. A "Custom" option is also available for full manual configuration.
Clear Visual Signals: Long (green) and Short (red) arrows appear on the chart when all entry conditions are met.
Active Zone Highlighting: The background of the indicator panel changes color (green or red) when "active zone" conditions (a combination of stochastics, trend, and RSI) are favorable.
Information Panel: A table in the top-right corner of the indicator panel displays the current status of the selected preset, trend filter, RSI value, and stochastic levels.
Signal Logic:
A LONG signal is generated when:
The fast stochastic %K crosses above its %D line.
The slow stochastic %K line is below its lower Bollinger Band (dynamic oversold condition).
The fast stochastic %K line is also in a low area (e.g., <25) to confirm the trigger is not premature.
The closing price is above the trend moving average (uptrend).
The RSI is above its long confirmation level (e.g., >40), indicating sufficient bullish momentum.
A SHORT signal is generated when:
The fast stochastic %K crosses below its %D line.
The slow stochastic %K line is above its upper Bollinger Band (dynamic overbought condition).
The fast stochastic %K line is also in a high area (e.g., >75).
The closing price is below the trend moving average (downtrend).
The RSI is below its short confirmation level (e.g., <60), indicating sufficient bearish momentum.
How to Use:
Select a Preset suitable for your trading style and the timeframe you are analyzing (e.g., Scalping for M1-M15, Intraday for M5-H1, Swing for H4-D1).
Alternatively, choose "Custom" and manually adjust all parameters (stochastic lengths, smoothing, Bollinger Bands, Moving Average, RSI, confirmation thresholds).
Observe the Information Panel for a quick understanding of the current conditions.
Evaluate the arrow signals, always considering the broader market context, price action, and any other confluences (supports/resistances, chart patterns).
The background highlighting can help quickly identify periods where conditions are aligned for potential trades.
Disclaimer:
This script is provided for educational and informational purposes only. Trading involves significant risk, and past performance is not indicative of future results. Always thoroughly test any strategy or indicator on historical data and on a demo account before risking real capital. The author assumes no responsibility for any losses incurred from the use of this script.
Author: giua64
Overview:
This indicator enhances the traditional Dual Stochastic strategy, aiming to provide more filtered and potentially reliable trading signals. By integrating dynamic overbought/oversold levels via Bollinger Bands on the slow stochastic, a trend filter based on a moving average, momentum confirmation via RSI, and user-friendly selectable presets, "Dual Stochastic Enhanced" seeks to offer a more robust approach to identifying potential entry points.
Key Features:
Dual Stochastics: Utilizes a slow stochastic (configurable, e.g., 14 periods) as a context filter and a fast stochastic (configurable, e.g., 5 periods) as a signal trigger.
Bollinger Bands on Slow Stochastic: Instead of fixed overbought/oversold levels (80/20), Bollinger Bands are applied to the %K line of the slow stochastic. This creates dynamic zones that adapt to the stochastic's own volatility.
Trend Filter: A moving average (configurable type and length, e.g., EMA 100 as seen in the example chart for general context) on the price helps filter signals, allowing only trades aligned with the prevailing trend.
RSI Confirmation: An RSI oscillator (configurable length, e.g., 14 periods) is used to confirm momentum. Signals require the RSI to cross certain thresholds to validate the strength of the move.
User Presets: Includes presets for "Scalping," "Intraday," and "Swing trading," which quickly set all key parameters to suit different styles and timeframes. A "Custom" option is also available for full manual configuration.
Clear Visual Signals: Long (green) and Short (red) arrows appear on the chart when all entry conditions are met.
Active Zone Highlighting: The background of the indicator panel changes color (green or red) when "active zone" conditions (a combination of stochastics, trend, and RSI) are favorable.
Information Panel: A table in the top-right corner of the indicator panel displays the current status of the selected preset, trend filter, RSI value, and stochastic levels.
Signal Logic:
A LONG signal is generated when:
The fast stochastic %K crosses above its %D line.
The slow stochastic %K line is below its lower Bollinger Band (dynamic oversold condition).
The fast stochastic %K line is also in a low area (e.g., <25) to confirm the trigger is not premature.
The closing price is above the trend moving average (uptrend).
The RSI is above its long confirmation level (e.g., >40), indicating sufficient bullish momentum.
A SHORT signal is generated when:
The fast stochastic %K crosses below its %D line.
The slow stochastic %K line is above its upper Bollinger Band (dynamic overbought condition).
The fast stochastic %K line is also in a high area (e.g., >75).
The closing price is below the trend moving average (downtrend).
The RSI is below its short confirmation level (e.g., <60), indicating sufficient bearish momentum.
How to Use:
Select a Preset suitable for your trading style and the timeframe you are analyzing (e.g., Scalping for M1-M15, Intraday for M5-H1, Swing for H4-D1).
Alternatively, choose "Custom" and manually adjust all parameters (stochastic lengths, smoothing, Bollinger Bands, Moving Average, RSI, confirmation thresholds).
Observe the Information Panel for a quick understanding of the current conditions.
Evaluate the arrow signals, always considering the broader market context, price action, and any other confluences (supports/resistances, chart patterns).
The background highlighting can help quickly identify periods where conditions are aligned for potential trades.
Disclaimer:
This script is provided for educational and informational purposes only. Trading involves significant risk, and past performance is not indicative of future results. Always thoroughly test any strategy or indicator on historical data and on a demo account before risking real capital. The author assumes no responsibility for any losses incurred from the use of this script.
Author: giua64
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.
borsamercati.it – Educational tools by giua64
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.
borsamercati.it – Educational tools by giua64
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.