Download MetaTrader 5

control if long or short not work

To add comments, please log in or register
faustf
88
faustf 2016.06.06 16:47 

hi guy i  have a  EA  in this  EA   i want  controll if trade short  , going  in  good direction or  not , and  the  same  for long

i  write 

if(Bid>=(OrderOpenPrice()+limit_closing) //short

 this if  in short  work perfect ,  but   in long  dont  work (dont  do nothing  )


 if(Bid<=(OrderOpenPrice()-limit_closing))  //long


how is possible???

what wrong?  

thankz at all again

To add comments, please log in or register