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
Wing There's a few threads on the forum about backtest and live trades being different at times. ...
ET I agree with verdi55. As it is now, the code will only test for a breakout on the upside (li...
Philipjonasson are u still active Wing?
nwesterhuijs Thanks, only saw it just now.
juanj For the latest version and discussions see the Ichimoku thread here: https://www.prorealcod...
Louwrens Hi Juanj. Thanks for this. I am tying it as we speak. It does not trade that often, which is...
ALE
8 years ago
CSR strategy DAX 1 D
CSR strategy DAX 1 D
17
Strategies
Jesper I tried it on dax 1D and I did not get any trades. Shifted to 10H and it started working. Wo...
rgrgrgr I have the same problem
avatar
crazytrader Is this working?
Maz
8 years ago
Francesco78 very nice, thanks!
Wilko Interesting! Thanks for sharing!
BjornH Extremely nice, thanks!
finplus Thanks for the job. Which variables do you suggest for timeframe 1 hour? 
Maz Depends massively on your market and the volatility. I suggest using the variable optimizer ...
1Randy This a great momentum filter! I would like to see volume momentum incorporated into the indi...
majid52026 Hi I want MBXF Timing for mq5 Does anyone have this indicator???
dertopen Hi Nicolas good work for the code translation when i chek the mbfx system site i see in t...
Nicolas Yes, just change the color by yourself in the indicator settings window.
Nicolas All conditions under parenthesis for the c1 to c4 conditions should be inverted. 
tomus Can you give an example of the overbought codes please? Thanks.
ams123 Frank Merci Nicholas -:)
Djo Not working on V11. The RSI doesn't appear on the chart.
Mika83 Bonjour, J'ai des soucis de lecture de syntaxe avec la variable "drawsegment" sur la versio...
seb234 Salut Mika, j'ai la version V11.1, la formule fonctionne. Mais il est préférable, dixit Nico...
bolsatonimora2 Hi, nice indicator, it´s possible to include a middle line with 50 value? ty!
gabri Hi, EMA26 approximate almost exactly the 50% line
Alain Wilder MA is exactly the 50% line
wtangsiri Bonjour J'ai importé le fichier ITF en question, mais cela me donne, en bas de l'écran, un...
Nicolas Il faut ajouter l'indicateur sur le graphique du prix.
skuggan89 This is a great indicator, works very well!! Is there any algo based on this indicator that ...
owes29 Hi is there anyway to develop this for the pro scanner on daily or hourly scans. so it woul...
Nicolas Of course, please add a query in the proscreener forum.
Bruno Carnazzi C'est dommage, cette histoire d'énergie fractale bousille complètement la précision de l'ind...
wtangsiri Bonsoir Qu'appelez vous l'axe vertical et comment le définir ? Merci pour votre aide.
rafadonl2 Pardonnez-moi mais je ne sais pas ce que vous entendez par "axe vertical". Serait-ce la lig...
rafadonl2 Je viens de voir ce que vous voulez dire. Comme pour tout autre indicateur, vous devez défin...
gregus bonjour a tous quelqu un pourait il recodé en prt il sagit  du dynamique zone ma, je n arri...
Nicolas Merci de faire une requête spécifique sur le forum. 
Nicolas
8 years ago
StepRSI
StepRSI
5
Indicators
Nicolas Thanks for this modification, I still do not have tested it, where did you get this idea to ...
rfsteve Trial and error from study of indicators call it coding mad science was trying to find an in...
Maxime Baudin Nice! Thanks :)
Nicolas
9 years ago
GraHal Forked code I mention above is here ... GraHal wrote: So below is the PRC Stochastic RSI v...
GraHal Try again (quite limited what you can do as Comments in the Library) https://www.prorealco...
AutoFlanders Thanks GraHal, that's what i was looking for
Etienne Hi, I'm quite late in this thread. I'd just like to propose an enhancement because this in...
Nicolas Thanks Etienne.
Bard Hi Nicolas, I wanted to make this scaled indicator above between -1 and +1 instead of 0 to +...
Madrosat Bonjour Nicolas Je souhaiterais faire colorier le fond du graphique supérieur en vert lorsq...
Nicolas Merci d'ouvrir un sujet dans le forum approprié.
Nwab Hello Mr Nicolas.. Please how can I set this up as an indicator to work on mt5. Your guidan...

Top