EA closing trades wrong on live account but not in backtest and on other broker
olzonpon:
Don't use StrToTime as it returns the date as local time, not platform time if the date is not included in the string.
Keith Watford:
Thank you =)
Don't use StrToTime as it returns the date as local time, not platform time if the date is not included in the string.
Hi
On one of my live account
All my open trades are closing 00:00:00 on Fridays
I can't find the reason why they are closing because they are not closing on backtest and on other livebrokers i have.
The thing that are the difference between the brokes is that:
-The one that are closing the orders the chart time is GMT+1.
- And the one that are correct and not closing the orders are in GMT+0.
And another thing that are different is the:
-The VPS server of the EA/terminal who are closing the orders is GMT+8.
-And the VPS server of the EA/terminal who is not closing the orders are GMT+0.
Can the difference in VPS server time be doing this (based on my code below)?
Or have anyone have another clue what might cause this problem?