Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Heiken Ashi 8 Indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Heiken Ashi 8 Indicator

    I'm wanting to have the heiken ashi 8 indicator not print the large bar with the gap on the open. Is this possible?
    Thanks in advance for any help with this.
    Regards
    James
    Attached Files

    #2
    Hello James,

    To confirm, you don't want the indicator to render the rectangle over the bar if the difference of the high minus low is larger than a specific number?

    How large must the difference of the high and low be for the rectangle not render?

    In OnRender() before the line where the barX is assigned, line 239, add a condition to continue if the difference is too great.

    For example if I wanted to not render when the differences is greater than 100.

    if (HAHigh.GetValueAt(idx) - HALow.GetValueAt(idx) > 100 && Bars.IsFirstBarOfSessionByIndex(idx))
    continue;
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Chelsea,
      Thank you so much that worked perfectly.
      Thanks again,
      James

      Comment


        #4
        Hello Chelsea,

        On some of the opening gaps I'm still getting the big bar. Is it possible to maybe start the bars after the first bar has completed or something to get rid of the big gap bar?
        Thanks again for all your help.
        Regards,
        James
        Attached Files

        Comment


          #5
          Hello James,

          That appears to be the second bar after the open.

          Are you wanting to not render the second bar?

          If so, modify the condition to also compare the second bar.

          if (HAHigh.GetValueAt(idx) - HALow.GetValueAt(idx) > 100 && (Bars.IsFirstBarOfSessionByIndex(idx) || Bars.IsFirstBarOfSessionByIndex(idx-1))
          continue;​
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Thank you Chelsea.
            It seems it was the first 3 bars that filled the gap. Thank you again for all your help and direction.
            Regards,
            James

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            597 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            343 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            556 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            555 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X