Download MetaTrader 5
To add comments, please log in or register
Sign up for MQL5.community to post your Forum topic
fxtrader_
247
fxtrader_ 2016.03.17 14:43 

Hi,


I'm trying to alert for weekly High and Low price, I'm using this code:


      double Alert_To_W1_High = iHigh(Symbol(),PERIOD_W1,1);
      double Alert_To_W1_Low  = iLow(Symbol(),PERIOD_W1,1);

      if(Ask+1*Point >= Alert_To_W1_High && Ask-1*Point <= Alert_To_W1_High) 
        Alert(Symbol() + " Price Neer To    [ W1 ]   High");
      


Please help to alert for "LOW" I'm not able to code it, I use Bid but it is not work


Thanks

whroeder1
13627
whroeder1 2016.03.17 15:05  
FxTrader_: Please help to alert for "LOW" I'm not able to code it, I use Bid but it is not work
  1. "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. learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
  3. MT4 charts are Bid charts. Your compare should be with the Bid.
  4. Your code
    if(Ask+1*Point >= Alert_To_W1_High && Ask-1*Point <= Alert_To_W1_High) 
    Simplified
    if( MathAbs(Bid - Alert_To_W1_High) <= 1*Point) 

fxtrader_
247
fxtrader_ 2016.03.17 18:47  
Thank you
/
To add comments, please log in or register