AccountEquity problem with Currency Basket

 

Hi,

I have opened 44 positions with 15 currencies. My target is based on the AccountEquity, but the AccountEquity is not realtime, only if the chart is updated by the opened currency, but sometimes is it lag until 3-5 seconds . How can I solve the problem, so that the AccountEquity is really realtime?

Thanks in advance

Roman

 

...

You have to keep it (the code) within endless loop and use Sleep() to set up some kind of timer, or use some tick generator (one can be found at this post : https://www.mql5.com/en/forum/181239 ) so that even when there are no incoming ticks your EA gets one

rm78:
Hi,

I have opened 44 positions with 15 currencies. My target is based on the AccountEquity, but the AccountEquity is not realtime, only if the chart is updated by the opened currency, but sometimes is it lag until 3-5 seconds . How can I solve the problem, so that the AccountEquity is really realtime?

Thanks in advance

Roman
 

works fine, thank you.

I am going to take future discussion of my tool set to a sub forum.

Do you know where Keits sub forum is?

Reason: