Hi MartinA couple of months ago I wrote an EA to trade using HA...

  1. 8,420 Posts.
    lightbulb Created with Sketch. 59
    Hi Martin

    A couple of months ago I wrote an EA to trade using HA bars. The rules ended up being pretty simple. the trigger for a trade entry is for the bar colour to change and then it sets a buy or sell threshold based on the high (buy threshold for a red to green colour change) or low (sell threshold for a green to red colour change) of the bar that changes colour from the previous bar, and then it buys or sells at the next bar that closes above the buy threshold or below the sell threshold respectively. The exit is simply a trailing stop based on the highest high or lowest low of the previous 2 bars.

    I've had it in demo mode since July and it has made money (see results below) but it languished for quite a while which is why I just let it run to see whwat it would do. I'm sure it can be improved (I just haven't had time, been focusing on some other EA's which I wanted to get running live first) but what it does show is there are simple strategies using HA bars that can make money. Rick uses smoothed high and low moving averages which I experimented with but I found the above approach simpler.

    https://hotcopper.com.au/data/attachments/1354/1354033-09696a72e5a8625344c02ebc7a055b97.jpg

    Cheers, Sharks
 
arrow-down-2 Created with Sketch. arrow-down-2 Created with Sketch.