Forum

EA not runnig in strategy tester.

My EA is not running in Strategy Tester. After pressing start nothing happens. The journal says “loaded successfully” and nothing else. I am testing on H1, every tick, using dates Dec 1, 2012 - Dec 20, 2012. I have also tried daily, open prices only and all dates. When I place the EA on the chart I

New day arrow

I am trying to place an arrow on the chart at the start of each day. However the code is only placing an arrow for the start of the last day. //+------------------------------------------------------------------+ //| DayStart.mq4 | //| Copyright 2012, MetaQuotes Software Corp. | //|

Help with code issue?

The second if statment "if(OrdersTotal() == 0 && LoMidBuf1 > LoMidBuf && SellOrder == 1)" is running even though the OrdersTotal() equals one (set by the first if statement). The print statment shows that OrdersTotal is zero but the code still runs. I don't understand. Thanks for the help

EA problems on Saturday

Is anyone else getting wrong or false results when back testing their EA on Saturday ? My broker is Oanda

Custom Indicator return value to EA.

After a long three weeks of work I have built my own custom indicator and am happy with the on screen results. I have been trying for the last two days to output a return value to an EA without any results. How do I get it to return a value to my EA like iMA does? FYI my EA is the simple expert

Bar time

double h = High[1]; int t = Time[1]; MessageBox ("H=" + h + ", t=" + t); The above returns the correct high for bar 1 but the time returned is 13335535200. What is the correct way of retrieving the bar time