
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
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.