Forum

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

return value of 'OrderSend' should be checked

Hello my friends, Ive got a little problem with a part of my ea. if (a=0) {OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-(StopLoss*Point),Bid+(TakeProfit*Point),NULL,Blue); printf ("buy");} if (a=1) {OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Ask+(StopLoss*Point),Bid-(TakeProfit*Point),NULL,Red); printf