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 Rapine Heihei, 04-23-2024, 07:51 PM
      2 responses
      30 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by Shansen, 08-30-2019, 10:18 PM
      24 responses
      943 views
      0 likes
      Last Post spwizard  
      Started by Max238, Today, 01:28 AM
      0 responses
      9 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by rocketman7, Today, 01:00 AM
      0 responses
      4 views
      0 likes
      Last Post rocketman7  
      Started by wzgy0920, 04-20-2024, 06:09 PM
      2 responses
      28 views
      0 likes
      Last Post wzgy0920  
      Working...
      X