Sometimes zero value from iMA when running 32 EA on virtual server - page 2

 

Hello all,

finally, I have found the reason why some iMA are returning zero when running on a virtual server, this happens when the iMA needs values that are laying too much back in the past (sorry for my English, hope it is understandable...), where no ticks has been synchronized.

The solution for this is to zoom out in the graph with the EA running, before synchronizing.

Regards

Christoph

 
Hello, I found a solution! Simply use this in OnInit(), it will Refresh the Chart and update the data correctly.

ChartSetSymbolPeriod(0,Symbol(),PERIOD_CURRENT);
Reason: