Hi,
i took a quick look at your code - one problem is, that you set the wrong indicator parameter:
//--- Plot 5 : bull_div #property indicator_type4 DRAW_LINE #property indicator_style4 STYLE_SOLID #property indicator_width4 1 #property indicator_color4 clrBlue #property indicator_label4 "BULL" //--- Plot 6 : bear_div #property indicator_type4 DRAW_LINE #property indicator_style4 STYLE_SOLID #property indicator_width4 1 #property indicator_color4 clrBlue #property indicator_label4 "BEAR"instead of:
//--- Plot 5 : bull_div #property indicator_type5 DRAW_LINE #property indicator_style5 STYLE_SOLID #property indicator_width5 1 #property indicator_color5 clrBlue #property indicator_label5 "BULL" //--- Plot 6 : bear_div #property indicator_type6 DRAW_LINE #property indicator_style6 STYLE_SOLID #property indicator_width6 1 #property indicator_color6 clrBlue #property indicator_label6 "BEAR"
Maybe this helps you.
Best regards,
Werner Klehr:
Of course! Amazing thank you!!
Hi,
i took a quick look at your code - one problem is, that you set the wrong indicator parameter:
instead of:Maybe this helps you.
Best regards,
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi I am trying to use the MACD divergence indicator as a signal for my EA.
In order to do this, I have tried to add another array into the indicator that stays at 0 and signals 1 when a divergence condition is met.
I wanted to plot this array intially to see if it worked before using it in the EA.
I can't get the array to plot but there are no errors printed either?
Can someone point me in the right direction?