Metatrader known bugs ... - page 113

 
mladen:
Did not find any - yet.
Seems to be stable
 
techmac:
Seems to be stable
Yes, it seems so
 
New builds solved the iCustom() slowing down problems
 
mladen:
New builds solved the iCustom() slowing down problems
Yes, it seems to be much faster in some cases
 

Build 1010 :

  • max bars on chart setting is ignored
  • number of bars in an indicator can be something completely different from the number of bars displayed on chart (first run is frequently set to 1 or 2 as a number of bars, even though the bars on chart are much larger). That can cause some indicators to get an "array out of range" error, even though it is not a case once when the values are set as they should
  • always check if Bars is >= 2 for the above mentioned
 
mladen:

Build 1010 :

  • max bars on chart setting is ignored
  • number of bars in an indicator can be something completely different from the number of bars displayed on chart (first run is frequently set to 1 or 2 as a number of bars, even though the bars on chart are much larger). That can cause some indicators to get an "array out of range" error, even though it is not a case once when the values are set as they should
  • always check if Bars is >= 2 for the above mentioned
On every broker?
 
techmac:
On every broker?
Come to think of it, it does not happen if I use metatrader own server (the number of bars being 1 or 2). But the max bars on chart is ignored the same
 
mladen:
Come to think of it, it does not happen if I use metatrader own server (the number of bars being 1 or 2). But the max bars on chart is ignored the same
Strange
 

This is not about a bug

This is a warning (and a reminder) that metatrader 5 handles arrays in completely different way. For example : when we resized arrays in metatrader 4, they were initialized too - metatrader 5 does not do that. So, make sure that all the elements of your array are set to proper values (there are no assumed 0 values in mt5 arrays) or else you can lose significant time. Arrays in mt5 are handled in exactly the same way as in C/C++

 
mladen:

This is not about a bug

This is a warning (and a reminder) that metatrader 5 handles arrays in completely different way. For example : when we resized arrays in metatrader 4, they were initialized too - metatrader 5 does not do that. So, make sure that all the elements of your array are set to proper values (there are no assumed 0 values in mt5 arrays) or else you can lose significant time. Arrays in mt5 are handled in exactly the same way as in C/C++

Thanks for the post. Sometimes it is really frustrating
Reason: