I use testing mode to improve my EA today,but I met a very strange problem about iMA() function,so I made a test code,it's very simple,just one line:
int init()
{
Print(iMA(NULL,10080,6,0,MODE_EMA,PRICE_CLOSE,0)+" ");
}
In testing mode this code just print "0.00000000",but if I changed timeframe to smaller values,then works fine.Also if I attach this EA to chart directly,it's works fine to,so is this a bug of MT4 testing mode?
int init()
{
Print(iMA(NULL,10080,6,0,MODE_EMA,PRICE_CLOSE,0)+" ");
}
In testing mode this code just print "0.00000000",but if I changed timeframe to smaller values,then works fine.Also if I attach this EA to chart directly,it's works fine to,so is this a bug of MT4 testing mode?