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 algospoke, Yesterday, 06:40 PM
      2 responses
      19 views
      0 likes
      Last Post algospoke  
      Started by ghoul, Today, 06:02 PM
      3 responses
      14 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      45 views
      0 likes
      Last Post jeronymite  
      Started by Barry Milan, Yesterday, 10:35 PM
      7 responses
      21 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by AttiM, 02-14-2024, 05:20 PM
      10 responses
      181 views
      0 likes
      Last Post jeronymite  
      Working...
      X