Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BUG: Low[] and High[] rounding error with FX

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

    BUG: Low[] and High[] rounding error with FX

    Hi team,

    I have found a rounding bug with FX and the Low[] High[] array. To repeat this error, try and access the Low or High of a previous bar, for example Low[3] or High[4].

    Continually accessing this same bar will yield different results, for example 1.3379 and 1.3380 are common, even though the high or low of a previous bar has not changed.

    Could this be something to do with IB quoting to 5 decimal places? I.e. 0.00005

    Thanks
    Last edited by burnzau; 01-14-2013, 03:43 AM.

    #2
    Thanks for the report - which 'quote currencies in' setting are you using for IB? HalfPip?

    This would be set under Tools > Options > Data.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks. My setting was on pip. I've now changed it to 1/10th pip and I think this may have solved the issue. Sorry you can delete this thread if you want.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by funk10101, Today, 12:02 AM
      0 responses
      3 views
      0 likes
      Last Post funk10101  
      Started by gravdigaz6, Yesterday, 11:40 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by MarianApalaghiei, Yesterday, 10:49 PM
      3 responses
      10 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by XXtrader, Yesterday, 11:30 PM
      0 responses
      4 views
      0 likes
      Last Post XXtrader  
      Started by love2code2trade, 04-17-2024, 01:45 PM
      4 responses
      28 views
      0 likes
      Last Post love2code2trade  
      Working...
      X