how can i do this ?
i try but i can't ?
what's wrong ??
I would caution you against just averaging averages. This is a rather simple article since its from answers.com but you might find it useful getting started
http://wiki.answers.com/Q/Is_an_average_of_averages_accurate
Basically if you just average a few moving average lines your just going to be drawing some other line so you need to ask yourself why you think the average of MA's is going to be useful for you. Additionally you need to determine what averages are going to be most important for your system. That way its not 'just a line' on the chart.
instead of writing tons of code
iMAOnArray() + iCustom() should solve the problem
gjol thank you but i don't know how can i do these, and i must stop for that subject :(
heyy i did :)
everybody thank you, and thanks to mehmet, he help me on message
this is ma and ma on array in the same chart :P
one small step for mankind one giant leap for man (me) :P
#property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Red #property indicator_color2 DarkBlue double ExtMapBuffer1[]; double ExtMapBuffer2[]; extern int MA_period=14; int init() { IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)); SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,ExtMapBuffer1); SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,2); SetIndexBuffer(1,ExtMapBuffer2); return(0); } int deinit() { return(0); } int start() { int bar, limit; int counted_bars=IndicatorCounted(); if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; limit=Bars-IndicatorCounted(); for(bar=0; bar<limit; bar++) ExtMapBuffer1[bar] = iMA(NULL, 0, MA_period, 0, MODE_SMA, PRICE_CLOSE, bar); //iCCI(NULL,0,CCIDeger,PRICE_TYPICAL,bar); for(bar=0; bar<limit; bar++) ExtMapBuffer2[bar]=iMAOnArray(ExtMapBuffer1,Bars,MA_period,0,MODE_SMA,bar); return(0); }
heyy i did :)
everybody thank you, and thanks to mehmet, he help me on message
this is ma and ma on array in the same chart :P
one small step for mankind one giant leap for man (me) :P
On your final line of code you used "Bars" in your ma parameters. I've found this can cause problems loading charts at times. "Waiting on Data" message can occur, and never load. I put Bars value into a variable and put your variable in the iMAOnArray parameter, to avoid this.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
how can i do this ?
i try but i can't ?
what's wrong ??