Forum

Can not run my EA on strategy tester, running on hostory data is disabled.

I'm trying to run an EA, I wonder why just the green button in MetaEditor4 is available to run my EA, the blue ones are disabled. what are the reasons that make an EA force to run in live but not in history mode in Strategy tester

How can I get current date and time in datetime type in strategy tester?

I'm trying to open a BuyStop position while expiration parameter points to the next 5 hours. trying to calculate the time using (TimeTradeServer()+PeriodSeconds(PERIOD_H1)*5) function but in strategy tester it returns a fixed time all the time which is (2020.01.01 05:00:00). I wonder why when I