Parameter pip/point counter

 

Hi,

Putting together parameters for a buy or sell; stuck on, a parameter where the points/pip are counted when the bar is closed, then trades when a expected number of points are counted from the bar.

eg,

the parameters i've used are:

//Buy
If(Close[1]+0.0001) 
//Sell
If(Close[1]-0.0001) 
//there is also 
If(Close[1]-Close[2]) && ((Close[1]-Close[2])>-0.0001)

 <-- but its not working in the sell direction.

 
  1. Don't double post! You already had this thread open.
              General rules and best pratices of the Forum. - General - MQL5 programming forum (2017)

  2. If(Close[1]+0.0001) 
    
    If(Close[1]-0.0001) 
    
    If(Close[1]-Close[2])

    Those are prices, not boolean. Non-zero is true.