Backtesting iOpen() and iClose()

 

Hi,

I do have problems with the strategy tester and would like to know if the iOpen() and iClose() functions do work with it regulary.

Unfortunataly the markets are closed at the weekend, otherwise i would have tested it live.

 

 The EA hasn´t worked, so a wrote the function into a comment and saw they don´t return a number.

 

      Comment(iOpen("Symbol()",PERIOD_M1,1),"\n",iClose("Symbol()",PERIOD_M1,1),

              "\n",iOpen("Symbol()",PERIOD_M5,1),"\n",iClose("Symbol()",PERIOD_M5,1),

              "\n",iOpen("Symbol()",PERIOD_M15,1),"\n",iClose("Symbol()",PERIOD_M15,1)); 


All in all: Have i done a mistake or doesnt work it anyway?

 

Thanks in advance,

Glenn 

 
Symbol() without quotation marks, or simply use variable _Symbol.
 
Ernst Van Der Merwe:
Symbol() without quotation marks, or simply use variable _Symbol.
Perfect, thanks a lot!
Reason: