Here is a simple oscillator made of difference between 2 Closes of Heiken Ashi candles from a shifted period to present candle.
A moving average initiate signals when it crosses the main oscillator or the “zero” level.
I haven’t test it a lot, i think it can be used to detect when it’s time to exit trades when the shifted close is near the actual one that made lines crosses each other.
1 2 3 4 5 6 7 8 9 10 |
//parameters // period = 3 // MAperiod = 3 xClose = (Open+High+Low+Close)/4 Delta = xClose[0]-xClose[0+period] aDelta = average[MAperiod](Delta) RETURN Delta as "Heiken Ashi Delta", aDelta as "MA of Heiken Ashi Delta" |
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