There is an error. ONLY if you gonna use it for an EA... the buffers have wrong names, and the (supposed) to be the "Down" signal, its empy all the time...
So, my corrections (easy ones, not to fix the issue at root) are:
There is an error. ONLY if you gonna use it for an EA... the buffers have wrong names, and the (supposed) to be the "Down" signal, its empy all the time...
So, my corrections (easy ones, not to fix the issue at root) are:
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.
Dashed line is the regular moving average with no correction.
This CMA is magic. Tried trading with it today on a life trade. Good result. excellent! Great!
Got good result. Doubled it with stoch.
Thanks man.
There is an error. ONLY if you gonna use it for an EA... the buffers have wrong names, and the (supposed) to be the "Down" signal, its empy all the time...
So, my corrections (easy ones, not to fix the issue at root) are:
FOR THE BUFFERS DECLARATIONS:
--------------------------
#property indicator_color1 clrSilver
#property indicator_width1 1
#property indicator_style1 STYLE_DOT
#property indicator_type1 DRAW_LINE
#property indicator_label1 "Moving average"
#property indicator_color2 clrNONE
#property indicator_width2 1
#property indicator_style2 STYLE_SOLID
#property indicator_type2 DRAW_LINE
#property indicator_label2 "CMA"
#property indicator_color3 clrYellow
#property indicator_width3 1
#property indicator_style3 STYLE_SOLID
#property indicator_type3 DRAW_LINE
#property indicator_label3 "Slope Dn"
#property indicator_color4 clrAqua
#property indicator_width4 1
#property indicator_style4 STYLE_SOLID
#property indicator_type4 DRAW_LINE
#property indicator_label4 "Slope Up"
----------------
to FIX the empy Up signal:
----------------
if(up[i]==EMPTY_VALUE)
dn[i]=cma[i];
----------------
insert this if just before the return(rates_total) and thats it...
This CMA is magic. Tried trading with it today on a life trade. Good result. excellent! Great!
Got good result. Doubled it with stoch.
Thanks man.
There is an error. ONLY if you gonna use it for an EA... the buffers have wrong names, and the (supposed) to be the "Down" signal, its empy all the time...
So, my corrections (easy ones, not to fix the issue at root) are:
FOR THE BUFFERS DECLARATIONS:
--------------------------
#property indicator_color1 clrSilver
#property indicator_width1 1
#property indicator_style1 STYLE_DOT
#property indicator_type1 DRAW_LINE
#property indicator_label1 "Moving average"
#property indicator_color2 clrNONE
#property indicator_width2 1
#property indicator_style2 STYLE_SOLID
#property indicator_type2 DRAW_LINE
#property indicator_label2 "CMA"
#property indicator_color3 clrYellow
#property indicator_width3 1
#property indicator_style3 STYLE_SOLID
#property indicator_type3 DRAW_LINE
#property indicator_label3 "Slope Dn"
#property indicator_color4 clrAqua
#property indicator_width4 1
#property indicator_style4 STYLE_SOLID
#property indicator_type4 DRAW_LINE
#property indicator_label4 "Slope Up"
----------------
to FIX the empy Up signal:
----------------
if(up[i]==EMPTY_VALUE)
dn[i]=cma[i];
----------------
insert this if just before the return(rates_total) and thats it...
No need to change anything. Trend buffer is provided in the code which can be used in experts.