MODE_TICKVALUE returns 0 first run, second call is fine

Back to topics list To post a new topic, please log in or register
avatar
11
jseparovic 2016.07.26 18:12
 

I'm seeing a weird issue in one of my terminals. When I call marketInfo MODE_TICKVALUE it will return 0. If I run it again directly after, it returns the correct value.

This only happens on one of my terminals. Both are on 4.00 950

Anyone seen this issue before? 

 

2016.07.26 09:02:53.598 Script TickValueTest.mql GBPUSD,M15: removed

2016.07.26 09:02:53.597 TickValueTest.mql GBPUSD,M15: uninit reason 0

2016.07.26 09:02:53.597 TickValueTest.mql GBPUSD,M15: 1.330795949057131

2016.07.26 09:02:53.597 TickValueTest.mql GBPUSD,M15: initialized

2016.07.26 09:02:53.592 Script TickValueTest.mql GBPUSD,M15: loaded successfully

2016.07.26 09:02:47.160 Script TickValueTest.mql GBPUSD,M15: removed

2016.07.26 09:02:47.158 TickValueTest.mql GBPUSD,M15: uninit reason 0

2016.07.26 09:02:47.158 TickValueTest.mql GBPUSD,M15: 0.0

2016.07.26 09:02:47.157 TickValueTest.mql GBPUSD,M15: initialized

2016.07.26 09:02:47.148 Script TickValueTest.mql GBPUSD,M15: loaded successfully

 

 

 

avatar
13001
WHRoeder 2016.07.26 18:51 #
 
Get the values in OnCalculate, not in OnInit.
avatar
2017
gooly 2016.07.26 19:21 #
 
The tickvalue (MODE_TICKVALUE) has to be loaded from the broker and if the connection is not that 'far' it delivers 0...
Back to topics list  

To add comments, please log in or register