fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Heiken Ashi Indicator Returning wrong OHLC Values

    Bug Reports
    1
    2
    550
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sproutseeds last edited by

      I am attempting to find flat tops and bottoms of heiken ashi candles across multiple time frames and the code seems to be correct. Basically I am looking for when the open == the low with the heiken ashi indicator on candle ID 1. and when the open == the high of the heiken ashi on candle ID 1.

      I used alert messages and it is showing that my conditions are correct and the heiken ashi should be displaying flat tops and bottoms. But the heiken ashi candles on the chart show wicks.

      0_1591033722243_heiken_ashi_1.png

      0_1591033769144_heiken_ashi_2.png

      I used alert messages to output the values for documentation. The link of the current state of my program is here.
      https://fxdreema.com/shared/a4GOmHpgd

      1 Reply Last reply Reply Quote 0
      • S
        sproutseeds last edited by

        Nevermind, I was getting confused with how it actually paints the heiken ashi candles. I see now that it pants over the candle behind it. I was being tricked by the "low" and "high" wicks. fxdreema's values are correct, please delete this post.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        A
        X
        K
        F
        A

        14
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors