Disliked{quote} Dear Sir, Can this be coded from the same Indicator which you coded before using 5 EMA open and 5 Linear weighted close. Candle 1 : 5 Linear value at candle close was : 1.65302 ( see the data window ) Candle 2 : 5 Linear value at candle close was : 1.65302. So for both the candles the 5 Linear weighted closes value was SAME. Only the 5 EMA open value changed. So I need a pop up alert with buy/sell arrow at the Candle 2 close when the values are same with past data. Same applies to 5 EMA open when the values are same for 2 consecutive candles...Ignored
conditions are:
EMA5_OPEN = NormalizeDouble(iMA(_Symbol,0,5,0,MODE_EMA,PRICE_OPEN,x),Digits);
EMA5_OPEN_Prev = NormalizeDouble(iMA(_Symbol,0,5,0,MODE_EMA,PRICE_OPEN,x+1),Digits);
LWMA5_CLOSE = NormalizeDouble(iMA(_Symbol,0,5,0,MODE_LWMA,PRICE_CLOSE,x),Digits);
LWMA5_CLOSE_Prev = NormalizeDouble(iMA(_Symbol,0,5,0,MODE_LWMA,PRICE_CLOSE,x+1),Digits);
double atr=iATR(NULL,0,100,x);
if (
(LWMA5_CLOSE == LWMA5_CLOSE_Prev) ||
(EMA5_OPEN == EMA5_OPEN_Prev)
Attached File(s)
Candle_Double_MA5_Cross_Alert v2.mq4
12 KB
|
311 downloads
1