please,how start an expert if bid touch 1.3405?

To add comments, please log in or register
itriad
165
itriad  

example:i have an expert based on moving average or any other strategy,& i want to start only if BID touch 1.3405 EUR/USD?

thanks

qjol
3195
qjol  
if(MarketInfo("EURUSD",MODE_BID) ==  1.3405)
   {
   OrderSend(....);
   }
whroeder1
17958
whroeder1  

Don't compare doubles with equality Working with Doubles in MQL4

if (MathAbs(Bid-1.3405) < Point) ...
To add comments, please log in or register