Coded it by request, here is a simple Heiken Ashi screener that detect candle HA turn from red to green and from green to red, for turning points detection purposes.
1 2 3 4 5 6 7 8 9 10 |
xClose = (Open+High+Low+Close)/4 if(barindex>2) then xOpen = (xOpen[1] + xClose[1])/2 endif c1 = xClose>xOpen AND xClose[1]<xOpen[1] c2 = xClose<xOpen AND xClose[1]>xOpen[1] SCREENER [c1 OR c2] |
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 :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Hi Nicolas, would it be possible to modify this code so that I could try it in ProBackTest?
The strategy I am trying to test is to simply go long on a green HA or go short on a red HA, probably with a trailing stop, using different timeframes.
Any help would be much appreciated, thanks
Bob
Hello Bob, of course it is possible. I’ll post your request on the English ProOrder Forum ASAP.
@bobtrader, you’ll find your strategy request coded here in the forum : http://www.prorealcode.com/topic/heiken-ashi-trading-strategy/ Enjoy.
bonjour Nicolas
serait il possible de modifier ce code pour qu’il prenne en compte x bougies verte ou rouge avant le changement de couleur? Merci
oui c’est possible, je pense même que cela a été codé X fois déjà, je vais chercher.
Bonjour Nicolas
Par rapport à ce code je souhaiterais la ligne de code qui permet d’identifier le changement de couleur avec une bougie sans mèche basse pour le vert et sans mèche haute pour le rouge. Je n’ai pas trouvé comment faire.
Merci
Merci de formuler une demande dans le forum ProScreener.