Download MetaTrader 5
To add comments, please log in or register
Do you want to know about the MQL5.community development? Have a look at the Wall!
tafadzwa
117
tafadzwa 2016.01.30 14:06 
i cant seem to solve this little problem
Files:
f.t.czah.mq4 2 kb
whroeder1
13620
whroeder1 2016.01.30 19: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.
/
To add comments, please log in or register