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
Related users ' posts
Khaled Thank you Nicolas! Looks like TDI (Trader Dynamic Index). Interesting to give Exit Signal as...
Nicolas ColorBetween is an instruction added last year: https://www.prorealcode.com/documentation/co...
finplus Bonjour, serait-il possible de remplacer l'écart formé par les bandes de Bollinger par l'ATR...
AntoGH Bonjour peut-on backtester cela ? Et si vous l'avez fait pourriez vous nous donner le code.....
Nicolas désolé c'est un oubli de ma part, tu peux supprimer cette ligne, elle n'est plus utile dans ...
DELBERT Bonjour , Nicolas , merci pour ta réponse , je suis en effet avec PRT 10.3 , et j'ai bidouil...
RakeshPoluri I have a question about the bands on the candles. Is it bollinger bands or something else?
Nicolas I think that's 2 Bollinger Bands
supertiti https://zupimages.net/viewer.php?id=20/50/2e3v.jpg
volanirina Bonjour Je souhaite l'avoir sur l'indicateur MT4 si possible s'il vous plait. car je l'ai fa...
Nicolas ProRealCode est un site dédié à l'utilisation de la plateforme de trading ProRealTime: https...
Pensera Bravo Nicolas ! Tu es en quelque sorte l’inventeur de Metascore…(oups je viens de lire jusqu...
Nicolas Dans un but d'investissement pure, et non spéculatif.
Enigma08 Hi Juanj. I am new to ProrealTime and I am trying to program the Proscreener. I want the Pro...
Nicolas Please open a topic in ProScreener forum with your query, I'll reply you there. Thank you.
manafull Thanks Nicolas, I post my question, along with the codes I am trying to convert from your in...
Nicolas I replied to your post here: https://www.prorealcode.com/topic/screener-for-rsi-and-linear-r...
superfalcio Hello, on the 2h timeframe I got a better performance in terms of win% and profit factor. I ...
Jiankyr82 Juan thanks for sharing, I had played with it few days, as also try to catch up on my pro-re...
Lespa212 Hi Samsampop, are you using this strategy? did you add a SL and an exit in case of a trend ...
Madrosat I Have not see a fully functioning automated strategy on your site?? Really have you???
juanj Hi Madrosat, why would it be on my site? I have developed it for my personal use and also to...
Madrosat ok I understood you are using prorealcode to hack the fish
imonix Have been trying this on demo since Monday before deciding whether to go live with it. Using...
Roberto Blázquez I'm sorry, I've tried it since November 2012 and it's bad results.
Vonasi An updated version with a bug fix can be found here: https://www.prorealcode.com/topic/dis...
snucke hey Vonasi is it possible you can help me get this indicator to show how much a market mo...
Patrick K Templar does need updateing for v12
kbrooks323 Hello would someone be willing to release a scan code for this? that would be helpful as I s...
Nicolas You can do easily this screener by using the assisted creation tool. It would take you about...
kbrooks323 I just figured it out thanks!
Vinks_o_7 Vonasi you're a beast !!! ;-)))
pableitor Amazing indicator , you are pushing PRT to the limit! But looking at the scatter its not c...
Zigo
5 years ago
fifi743 Good morning, there is no mistake about the shorts c11=SMI[14,3,5](close)>-40
Zigo has to be c11=SMI[14,3,5] < -40 (indeed)
xar3 Thank you ;-) Zigo
Nicolas
5 years ago
KDJ
KDJ
3
Indicators
fireleg79 Bonsoir Nicolas. Merci pour tout ton travail. Quand tu auras le temps pourras-tu jeter un oe...
Sejibi Bonsoir, En remplaçant percentJ = 3 * percentD - 2 * percentK par percentJ = 3 * perc...
JMARTY Bonjour, A la recherche d'un indicateur détectant les divergences sur DMI, je tombe sur ce...
Jan Wind Thanks for sharing ! The Gain/Loss ratio is a bit low, 1,16, hardly offset the risks take...
drive whats the period ?
Lucas0000 Hola. estoy buscando un programador en proorder, para hacer un programa basado en el Q-trend...
Sapo Thank you very much. as always your indicators are extremely effective. kind regards Vonasi.
mitsu21 Hi, it looks nice. I'll try it tomorrow thank you for your share kind regards bruno
kj1988 Thank you Vonasi for sharing this indicator. Very useful as a comfirmation to the price act...
michaelben Bonjour Nicolas . Je cherche une strategie pour faire du trading automatisé. J'ai essaye ave...
ggolfet Thanks Nicolas, I imported the itf file and solved the problem.
Hasardeur Hallo Nicolas, i tried to code the multi period heat map in combination with the Ehler’s ...
Nicolas Please open a new topic with the code in forum.

Top