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 pibrew, Today, 06:37 AM
      0 responses
      4 views
      0 likes
      Last Post pibrew
      by pibrew
       
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Started by llanqui, Today, 03:53 AM
      0 responses
      6 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      11 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      16 views
      0 likes
      Last Post AaronKoRn  
      Working...
      X