Need to use Heiken Ashi candles

dk275592dk275592 Posts: 1

Hello everyone. I need to backtest strategy using 5m Heiken Ashi Candles. It is possible on that platform? If yes, how can I do that?

Tagged:

Answers

  • ptunneyptunney Posts: 246

    We do not have Heiken Ashi Candlesticks but as these are calculated from normal bar data there is no reason why you could not calculate them yourself..

    HAClose = (Open+Close+Low+Close)/4 #Average price of current bar
    HAOpen = (prevbar.open + prevbar.close)/2 #Midpoint of the previous bar
    HAHigh = Max[High,HAOpen,HAClose]
    HALow = Min[Low,HAOpen,HAClose]

Sign In or Register to comment.