Download MetaTrader 5

Alert For Weekly High and Low

To add comments, please log in or register
fxtrader_
247
fxtrader_  

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
14781
whroeder1  
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_  
Thank you
To add comments, please log in or register