Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Intermittent bar[] issue

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

    Intermittent bar[] issue

    Hi. I have developed a simple indicator that reads High[0] and High[1] values and based on which is bigger or smalleran arrow is drawn.

    I have had to add a cluge fix,cause from time to time the indicator will see High[0] followed by High[24]. yes, High[1] will actually point to High[20 anything]. My fix is to avoid those bars when their difference is not 1. Obviously this leads to many missed signals.

    Any suggestions/comments/fixes are welcomed
    This is under NT 7

    Thank you
    Jess

    #2
    Hello xmess7,

    Thank you for your post.

    What you are seeing is not expected. Can you provide detail on how this occurs? Can you provide any code that replicates this behavior?

    I look forward to your response.

    Comment


      #3
      Hi, just wanted to followup. i was able to solve , for the mean time, this descrepancy by saving the OHLC values to static variables. When updatebar occurs i check to ensure that the diff between bar[0] and bad[1] is 1 minute. If not i then have the EA use the static variables to get the correct bar[1] OHLC values. The program is working to perfection and my client is now more than happy lol.

      I will see if i can provide a modified version that illustratescthe bug soou can investigate what the possible issues.

      Thnx jess

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by schmidtbc16, Today, 03:36 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by RT001, Today, 03:25 PM
      2 responses
      13 views
      0 likes
      Last Post RT001
      by RT001
       
      Started by mbrandau, Today, 01:58 PM
      5 responses
      37 views
      0 likes
      Last Post mbrandau  
      Started by remcovdmeulen, Today, 02:15 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by gbrad, Today, 09:57 AM
      7 responses
      15 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X