Nicolas

Bullish and Bearish Heiken Ashi screener

Category: Screeners By: Nicolas Created: November 13, 2015, 11:46 AM
November 13, 2015, 11:46 AM
Screeners
7 Comments
Bullish and Bearish Heiken Ashi screener

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.

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]

 

Download
Filename: Heiken-Ashi-detection.itf
Downloads: 584
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

iloco17
7 years ago
#

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

Nicolas
7 years ago
#

Merci de formuler une demande dans le forum ProScreener.

iloco17
8 years ago
#

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

Nicolas
8 years ago
#

oui c'est possible, je pense même que cela a été codé X fois déjà, je vais chercher.

bobtrader
10 years ago
#

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

Nicolas
10 years ago
#

@bobtrader, you'll find your strategy request coded here in the forum : http://www.prorealcode.com/topic/heiken-ashi-trading-strategy/   Enjoy.

Nicolas
10 years ago
#

Hello Bob, of course it is possible. I'll post your request on the English ProOrder Forum ASAP.

ProRealCode ProRealCode
Loading...