Close all orders if the PRICE HAS REACHED A CERTAIN LEVEL AND COMES BACK

Back to topics list To post a new topic, please log in or register
avatar
33
tafadzwa 2016.01.30 15:06
 
i cant seem to solve this little problem
Attached files:
  f.t.czah.mq4  (1.26 KB)
avatar
12985
WHRoeder 2016.01.30 20:30 #
 
  1. tafadzwa: i cant seem to solve this little problem
    You'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.
  2. 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.
Back to topics list  

To add comments, please log in or register