Lorenz Grisenti: I also tried with .... != EMPTY_VALUE
... but it catches only some of the signals! I do not understand why.
Although, this thread is old, I still decided to reply it, not just for the writer of this question but for others who later come across the thread and
intend to use the indi in an EA .
Although, this thread is old, I still decided to reply it, not just for the writer of this question but for others who later come across the thread and intend to use the indi in an EA .
Very good indicator :) But I tried to use on EA to open sell/buy order and nothing works using Icustom function as stated on previous post! Could you please help me?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi Hamza,
Nice job. Can you add push and email notifications to this indicator?
Thanks
I also tried with .... != EMPTY_VALUE ... but it catches only some of the signals! I do not understand why.
Although, this thread is old, I still decided to reply it, not just for the writer of this question but for others who later come across the thread and intend to use the indi in an EA .
:
Prev_Value=iCustom(Symbol(),0,"FX5_MACD_Divergence_V1.0",,separator1,fastEMA,slowEMA,signalSMA,separator2,drawIndicatorTrendLines,drawPriceTrendLines,displayAlert,0,1);
Curr_Value=iCustom(Symbol(),0,"FX5_MACD_Divergence_V1.0",,separator1,fastEMA,slowEMA,signalSMA,separator2,drawIndicatorTrendLines,drawPriceTrendLines,displayAlert,0,0);
if (Prev_Value!=EMPTY_VALUE && Curr_Value==EMPTY_VALUE) Buy order statement
do as above for Sell order by changing the index buffer from 0 to 1 but shift should remain the same
This worked for me.
I hope this helps someone.
-Debay
Although, this thread is old, I still decided to reply it, not just for the writer of this question but for others who later come across the thread and intend to use the indi in an EA .
:
Prev_Value=iCustom(Symbol(),0,"FX5_MACD_Divergence_V1.0",,separator1,fastEMA,slowEMA,signalSMA,separator2,drawIndicatorTrendLines,drawPriceTrendLines,displayAlert,0,1);
Curr_Value=iCustom(Symbol(),0,"FX5_MACD_Divergence_V1.0",,separator1,fastEMA,slowEMA,signalSMA,separator2,drawIndicatorTrendLines,drawPriceTrendLines,displayAlert,0,0);
if (Prev_Value!=EMPTY_VALUE && Curr_Value==EMPTY_VALUE) Buy order statement
do as above for Sell order by changing the index buffer from 0 to 1 but shift should remain the same
This worked for me.
I hope this helps someone.
-Debay