Getting errors but don't know where to correct, please help! - page 2 12 New comment ffoorr 2015.01.22 12:06 #11 This part will be an endless loop, no ?while(true) // Cycle that opens an order { int ticket1=OrderSend(Symbol(), OP_BUY, Lot, Ask, 2, SL, TP); int ticket2=OrderSend(Symbol(), OP_SELL, Lot, Bid, 2, SL, TP); Alert (GetLastError()); Alert(Symbol()," Sell = ",AccountFreeMargin()// At selling -AccountFreeMarginCheck(Symbol(),OP_SELL,1)); Alert(Symbol()," Buy = ",AccountFreeMargin() // At buying -AccountFreeMarginCheck(Symbol(),OP_BUY,1)); return(true); } Keith Watford 2015.01.22 12:45 #12 ffoorr: This part will be an endless loop, no ?I don't think so.there are no conditions for the return so all code after the return will not be executed 12 New comment
This part will be an endless loop, no ?
This part will be an endless loop, no ?
I don't think so.
there are no conditions for the return so all code after the return will not be executed