place pending order when line is touched - not working...
what error u get ?
what error u get ?
none, it just doesn't place the two pending orders when the white line is touched/reached?
have u tried BUY/SELL LIMIT
no, they need to be buy/sell STOPS. LIMIT is different kind of order :)
got it fixed now by changing the line to: if (Ask>=MiddleWhiteLine && Bid<=MiddleWhiteLine&& ready==1), seems like == was not right to compare two double values :)
now i just have to figure out, from two pending orders, how to close the other one, when one of the pending orders is opened (OCO?)
Good evening,
i'm having trouble to let my EA place pending orders when the middle white line on the chart is touched/reached. What am i doing wrong?
i only left the necessary code in here, because it was too long to post here...