i cant seem to solve this little problem
Files:
f.t.czah.mq4
2 kb
- Help. closing all orders
- this works? if an order is open and then i want to close the order this way......
- How to close all orders when price reaches take profit?
- tafadzwa: i cant seem to solve this little problemYou've stated no problem. "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires - meaningless. There are no mind readers here.
if(Bid>Line+50*Point) // if Price is greater than this level qq=1; : if(qq==1 && Bid<Line+50*Point) // when the price has come back Alert("Close all orders");// CLOSE_ALL_ORDERS( )
- You check if price has reached the level. Then if price ticks one Point below that you Alert.
- Perhaps you should alert when it comes back more than one Point.
- Or Perhaps alert when it comes back more than one Point from the high.
- Or just right click and set a trailing stop and be done.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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