Converting Price Data to Heiken-Ashi Format

Forums ProRealTime English forum ProBuilder support Converting Price Data to Heiken-Ashi Format

  • This topic has 1 reply, 2 voices, and was last updated 1 month ago by avatarJS.
Viewing 2 posts - 1 through 2 (of 2 total)
  • #244744

    Hello, on a 5 minute chart I want to inspect the high, low, 1st open, last close for the last three candles and draw that as a separate panel indicator on the 5 minute chart.
    Then the next 5 minute period and so on.
    (That is, a rolling 15 minute bar on a 5 minute chart. Conventionally 15m bars are only :00, :15, :30, :45.)

    So for the 3 candle ‘triplet’ the data generated is the max price high, min low across the three candles, the opening price at the start of the 15 minute ‘triplet’ and the closing price at the end of the ‘triplet’.

    I’ve attached my code so far – it works and gives an exact representation of PRICE candles generated in this way, :00, :15, :30, :45 candles match exactly the corresponding 15 minute chart data.

    My problem is: I do not get the correct result when I try to adjust my code for Heiken-Ashi output: it doesn’t match anything if I cross reference the 15m HA chart.

    Can anyone suggest code that takes my triplet data and draws the Heiken-Ashi candle version?

    Thank you very much

    #244745
    JS

    Here’s the conversion of the “triplets” to Heikin Ashi…

     

    4 users thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login