Download MetaTrader 5

how to code EA to do trailling only once a bar? pls help

To add comments, please log in or register
Sell your applications via the Market. It is secure!
oilyjaah
28
oilyjaah 2016.01.22 09:07 

i would like to do trailling stop only once a bar 

can anyone help pls? 

Keith Watford
Moderator
9624
Keith Watford 2016.01.22 10:43  
    
      static datetime bar_time=0;
      if(Time[0]!=bar_time)
        {
         bar_time=Time[0];
         //Trail stop code
        }
.
oilyjaah
28
oilyjaah 2016.01.22 11:33  
thank you
To add comments, please log in or register