what error u get ?
qjol:
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?)

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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...