The Heikin Ashi Smoothed Oscillator indicator is a momentum indicator made of smoothed Heikin Ashi candlesticks formation.
According to its original author, mladen:
Heiken Ashi Oscillator tends to have a lot of signal. So many signals that sometimes it is impossible to use it reasonably in trading. This version is attempting to bring that into reasonable bounds.
Instead of using the “regular” Heiken Ashi for oscillator calculations, this version is using the smoothed Heiken Ashi. That makes the number of false signals fall dramatically, and, when pre-smoothing is applied to Heiken Ashi, the lag is in acceptable bounds. That way it becomes a good trend assessment tool. Along with a signal line, you have multiple choices how to use this indicator in trading.
Indicator converted from a MT5 code version as requested in the Spanish forum.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
//PRC_Heikin Ashi Smoothed Osc | indicator //15.06.2018 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge //converted from MT5 version // --- settings inpMaPreSmoothPeriod = 7 // Pre smoothing average period inpMaPreSmoothMethod = 2 // Pre smoothing average method inpMaPosSmoothPeriod = 7 // Pos smoothing average period inpMaPosSmoothMethod = 2 // Pos smoothing average method inpMaPeriod = 2 // Signal period inpMaMethod = 0 // Signal method //MA method: //0 = SMA //1 = EMA //2 = WMA //3 = Wilder //4 = Triangular //5 = End point //6 = Time series // --- end of settings if barindex>inpMaPreSmoothPeriod+inpMaPosSmoothPeriod then maOpen = average[inpMaPreSmoothPeriod,inpMaPreSmoothMethod](open) maClose = average[inpMaPreSmoothPeriod,inpMaPreSmoothMethod](close) maLow = average[inpMaPreSmoothPeriod,inpMaPreSmoothMethod](low) maHigh = average[inpMaPreSmoothPeriod,inpMaPreSmoothMethod](high) if barindex>0 then haopen = (workha2[1]+workha3[1])/2 else haopen = (open+close)/2 endif haClose = (maOpen+maHigh+maLow+maClose)/4.0 workHa2 = haOpen workHa3 = haClose workHa4 = average[inpMaPosSmoothPeriod,inpMaPosSmoothMethod](haOpen+haClose)/2 if barindex>0 then val = workHa4 - workHa4[1] endif r=244 g=164 b=96 if val>0 then r=135 g=206 b=250 endif signal = average[inpMaPeriod,inpMaMethod](val) if signal>signal[1] then rs=30 gs=144 bs=255 else rs=255 gs=127 bs=80 endif endif RETURN val coloured(r,g,b)style(histogram), signal coloured(rs,gs,bs)style(line,5) |
Share this
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 :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Hola Nicolas todo y el suavizado es como el awesome da ala señal 3 velas atrasada a veces depende volatilidad 2 velas pero lo normal (al menos en las pruebas realizadas son 3 velas de retraso)
Bonjour à tous,
Merci pour ce superbe indicateur!
Est-il possible de rajouter une alerte sur un changement de couleur de l’oscillateur (changement de couleur de la ligne: bleu à rouge et réciproquement)?
Si quelqu’un à les connaissances techniques pour faire cela je lui serai vraiment reconnaissant!
Bonne journée à tous
Cordialement
Anthony