Alert For Weekly High and Low

Back to topics list To post a new topic, please log in or register
avatar
87
FxTrader_ 2016.03.17 15: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

avatar
13006
WHRoeder 2016.03.17 16: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) 

avatar
87
FxTrader_ 2016.03.17 19:47 #
 
Thank you
Back to topics list  

To add comments, please log in or register