Igorrisimo: But I deleted this extern strings from "FX5_Divergence_V2.1_alerts" code for simplicity, (with // , of course)
You think a condition "Buffer2 > 0" is right for this indicator?
Igorrisimo
Here is an example that is using that indicator - adjust it to your version
PS: divergence arrow can be drawn at at least 2 bars away from the current bar, not at the first closed bar
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.
"FX5_Divergence_V2.1_alerts" is an interesting indicator
But... when I write in EA a condition: "if buffer_2 > 0" (or "if buffer_3 > 0") it doesn`t work (((
What a condition must be written?What is the format of your iCustom() call?
the format is:
iCustom(0, 0, "FX5_Divergence_V2.1_alerts", 12 , 26, 9, true, true, false, false, false, 2,1);
(for green arrow)
the format is:
iCustom(0, 0, "FX5_Divergence_V2.1_alerts", 12 , 26, 9, true, true, false, false, false, 2,1);
(for green arrow)Igorrisimo
Try like this :
But I deleted this extern strings from "FX5_Divergence_V2.1_alerts" code for simplicity, (with // , of course)
You think a condition "Buffer2 > 0" is right for this indicator?
But I deleted this extern strings from "FX5_Divergence_V2.1_alerts" code for simplicity, (with // , of course) You think a condition "Buffer2 > 0" is right for this indicator?
Igorrisimo
Here is an example that is using that indicator - adjust it to your version
PS: divergence arrow can be drawn at at least 2 bars away from the current bar, not at the first closed bar
hm... thank you very much, Mladen
I wrote a condition "buffer2 < 0 for iCustom (... 2,bar+2). And its work for green arrow!
But a condition " buffer3 > 0 for iCustom (... 3,bar+2) doesnt work for RED arrow(
(a condition " buffer3 < 0doesnt work also)
I dont understand -why...
hm... thank you very much, Mladen
I wrote a condition "buffer2 < 0 for iCustom (... 2,bar+2). And its work for green arrow!
But a condition " buffer3 > 0 for iCustom (... 3,bar+2) doesnt work for RED arrow(
(a condition " buffer3 < 0doesnt work also)
I dont understand -why...Igorrisimo
Test the following : if buffer2 != EMPTY_VALUE and buffer3 != EMPTY_VALUE.
Yes, it works! thank you very much, Mladen! You are the best!
what condition in buy/ sell?
for buy?
if test1 < 0
for sell?
if test2 != EMPTY_VALUE and test1 != EMPTY_VALUE
thannks for helping