OPEN-SOURCE SCRIPT
Updated 4x Stochastic and 1x RSI Buy and Sell Signals

Buy signal (green), when Stochastic 9, 14, 40 and 60 are bellow 20.
Sell signal (red), when Stochastic 9, 14, 40 and 60 are above 80.
Buy signal is larger, when RSI is also bellow 30.
Sell signal is larger, when RSI is also above 70.
Using RSI is optional and can be disabled.
Use this signals when confirmed by another indicators, like support and resistance levels, EMAs and fundamental analysis.
Sell signal (red), when Stochastic 9, 14, 40 and 60 are above 80.
Buy signal is larger, when RSI is also bellow 30.
Sell signal is larger, when RSI is also above 70.
Using RSI is optional and can be disabled.
Use this signals when confirmed by another indicators, like support and resistance levels, EMAs and fundamental analysis.
Release Notes
The script was created to simplify the analysis of four Stochastic indicators and one RSI simultaneously, combining them into a single coherent buy or sell signal. The script is suitable for trading any asset: stocks, futures, currencies. The goal is to identify a local price low or high to indicate a potential moment for buying or selling (long or short positions).The intended use of the script assumes the simultaneous utilization of four Stochastic indicators on four different timeframes. By default, these are 9, 14, 40, and 60. The indicator helps identify price lows or highs if all four Stochastic indicators are below 20 or above 80.
- Buy Signal (green rectangle at the bottom of the screen): Triggered when all four Stochastic indicators are below 20.
- Sell Signal (red rectangle at the bottom of the screen): Triggered when all four Stochastic indicators are above 80.
An additional optional parameter is the RSI, which serves to strengthen the signal from the Stochastic indicators. If the Stochastic indicators show a buy or sell signal and the RSI simultaneously indicates oversold or overbought conditions, the buy or sell signal is displayed as a larger rectangle at the bottom of the screen.
Usage Strategy:
Looking for deeper price lows or highs should be supplemented with confirmation from other methods. Recommended tools include Price Action analysis, support and resistance analysis, and fundamental analysis of the company.
Release Notes
I added an option to disable the display of sell signals (red). As a result, only buy signals (green) appear.Strategy for the stock market:
The option to disable sell signals is useful in the stock market, as the stocks of good companies are typically in a long-term upward trend, leading to frequent false sell signals. Growth stocks tend to remain in the upper ranges of the Stochastic and often the RSI for extended periods. This is not a sell signal.
Strategy for currencies, commodities, and short selling:
Both sell and buy signals will be useful in these cases.
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.