Stochastic RSI + Heikin Ashi

Stochastic RSI + Heikin Ashi

1. Introduction

The technical indicator “Stochastic RSI + Heikin Ashi”, created by user CoffeeshopCrypto, is a hybrid tool that merges two complementary analytical approaches: the Stochastic RSI oscillator and Heikin Ashi candles. Its aim is to provide a clearer and smoother reading of market momentum, helping traders filter price noise and more accurately identify potential turning points.

2. Indicator Concept

This indicator is based on two core elements:

  • Stochastic RSI (StochRSI): a second-derivative oscillator that applies the stochastic calculation to the RSI, making it highly sensitive to overbought and oversold levels and useful for detecting early trend reversals.
  • Heikin Ashi Candles: a price smoothing technique that highlights market trends. In this case, the candles are built not from price, but from the smoothed StochRSI, making the indicator entirely momentum-based.

Combining both provides a clearer picture of market momentum while reducing the impact of false signals common with traditional oscillators.

3. How It Works

The indicator performs the following operations:

  1. RSI calculation using a customizable period (lengthRSI).
  2. Stochastic RSI computation:
    • Calculates the current RSI value.
    • Identifies the highest and lowest RSI values over a defined window (lengthStoch).
    • Normalizes the RSI within that range to derive the stochastic oscillator.
  3. Smoothing:
    • Applies moving averages to get smoothed %K (smoothK) and %D (smoothD) lines.
    • Subtracts 50 to center the oscillation around zero.
  4. Heikin Ashi candle creation:
    • Builds synthetic candles using smoothed %K and %D values.
    • Colors candles green if close ≥ open, red otherwise.
  5. Visual zones:
    • Adds shaded areas between +50/+40 and -40/-50 to highlight overbought and oversold zones.

4. Settings and Customizable Parameters

Key inputs include:

  • lengthRSI: RSI length (default: 14)
  • lengthStoch: stochastic length applied to RSI (default: 14)
  • smoothK: smoothing period for %K (default: 8)
  • smoothD: smoothing period for %D (default: 3)

Reference levels:

  • Overbought: +40 to +50
  • Oversold: -40 to -50

These can be adjusted to suit your preferred signal sensitivity.

5. Practical Applications

This indicator is particularly useful for:

  • Trend confirmation: Heikin Ashi candles help confirm ongoing momentum.
  • Reversal signals: divergence and zero-crosses between %K and %D can indicate turning points.
  • Noise reduction: visual representation makes it easier to ignore minor, non-actionable swings.

It serves as both a trend-following filter and a momentum reversal signal generator.

6. Source Code (ProRealTime – ProBuilder)

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

avatar
Register or

Likes

avatar avatar avatar
Related users ' posts
Juan Salas Hi FULVIO09, Nice piece of work. It seems to work very well. Does only work for INDEXES??...
Johann Hi @FULVI09, I understand the instructions however I'm not too sure how to determine the "p...
Player8520 Hello, It doesn't work with me either. However, I changed AA to 180 on line 15, added th...
Kosuda76 Thanks for your reply! But I do not really understand what the opposite of them the values ​...
AdriTrade Good job Louis!! How could do this for the Williams indicator? Thank you very much.
imorandin Hi!, Nice code. I'm tryng to port it to another language, but I don't understand this part:...
luxrun Thanks, bolsatrilera, for a very good and solid screener!
luxrun sorry... indicator!
Lily Rios Gracias por el indicador, tengo una pregunta necesito programar un screener de valores que e...
Bebbo Grazie del prezioso contributo Nicolas, scusa la mia inesperienza, sono alle prime armi e s...
Nicolas To avoid recalculation, you should use the one from this post.
Bebbo Ok Grazie Nicolas.
bolsatrilera
7 years ago
jissey Bonjour Bolsatrilera, je trouve le cm rsi interessant, merci de l'avoir mis à disposition ! ...
bolsatrilera bonjour jissey, je n'ai aucune information sur ce que tu dis, je suis désolé.
ALE Hi the color is given by a numerical value derived from the oscillator in use. If you comp...
efahmy Thanks mate
Jo-01-R Hello, it is possible to have this indicator but instead of colors rather have numbers rangi...
Nicolas
7 years ago
enricot Scusa nn riesco.
SoloContado If you smooth the signal using a "summation" function, you get a nice "crossing of 0" graph....
ShaunG Greatly appreciated Nicolas!
Nicolas Add it on price using the wrench on the left upper side of the price chart.
Stenozar thanks Nicolas, I' ll try again!
Radetzky Buongiono e grazie : l'immagine sopra ritrae l'indicatore sul TF 15 min ma a me funzio...
Etienne Hi, thanks for proving this code. I would like to contribute by adding a computation speed...
Etienne //Compute Super Smoother coefficients once if barindex = 1 then a1 = exp( -1.414 * 3.14159...
Nicolas Thanks a lot!
ak5hay2 Works like crazy on bitcoin. Use different timeframes. Thanks a lot Doc!!!
richyowen Hi, great code thanks. Very new to this forum. Is there a way to add a 100point target on an...
lisamitch50 Morning all, Just backtested on quite a few instruments, worked well on backtesting, but tel...
Matriciel
7 years ago
Alai-n Thanks...
Bard Thanks for sharing this Verdi55. More instructions from Larry Williams website (and a fea...
Nicolas
7 years ago
Jurik RSX
v10.3
Jurik RSX
3
Indicators
hartgeld Hallo Nicolas, ein sehr guter Indikator, vielen Dank! Leider rechnet er bei mir nicht die Pe...
rigel Hi Nicolas, have you coded the Jurik alone (as Mov. average)?
Nicolas 2 versions available in this indicator: https://www.prorealcode.com/prorealtime-indicators/a...

Top