Hi, I have been trying to implement the HeikinAshi indicator from the API, but I can't for the life of me figure it out. If someone could show me a basic implementation I would be extremely grateful. 

I am eventually trying to automate a manual forex strategy that compares the close of the previous Heikin candle to the current price and enters based off that.

Author