Page 1 of 3

Centred moving average Channel

PostPosted: Mon Feb 25, 2013 7:26 am
by Apprentice
CMC.png

Generate Channel around Centered moving average.
In pips or percentage.
CMAC.lua
(5.84 KiB) Downloaded 1289 times

To make it work install CMA.bin Indicator.
viewtopic.php?f=17&t=24476

if Mode is set to Dynamic
Yes for last Period/2 values,
they are just a projection of possible future MA value (Red Line),
indicator repaints.
if Mode is set to Static
No, indicator will not repaint.

OCMA CMAC.lua
(9.25 KiB) Downloaded 832 times

Multiple OCMA CMAC.lua
(8.87 KiB) Downloaded 793 times

OCMA CMAC will support OCMA.
OCMA is basically CMA which will support A wider selection of moving averages.
ATR and Standard deviation was introduced as additional methods for Channel calculation.

Re: Centred moving average Channel

PostPosted: Mon Feb 25, 2013 2:46 pm
by lucmat
Great work Apprentice :mrgreen:

Thanks

Re: Centred moving average Channel

PostPosted: Tue Mar 05, 2013 3:41 am
by Apprentice
Description update.

Re: Centred moving average Channel

PostPosted: Tue Mar 05, 2013 12:46 pm
by lucmat
Hi Apprentice :)
I've test this indicator in shorter timeframe and even if it changes only last value with the change of price, suddenly it draws a big change to setup the output line.
So also with static mode, this indicator repaints? :?

Thanks for your helpful works :D

Lucmat

Re: Centred moving average Channel

PostPosted: Thu Mar 14, 2013 11:39 pm
by Thumper
Apprentice. Can you reduce the re paint on CMA Channel without compromising the indicator too much? Perhaps you can apply a second average to the middle line or both the upper and lower lines to simulate the same as what the indicator produces at this moment. Also you can get rid of the dynamic selection and just leave it at Static.

Re: Centred moving average Channel

PostPosted: Sat Mar 16, 2013 8:35 am
by Apprentice
Additional smoothing is necessary to be apply only to the central line.
Unfortunately, it will not remove the repaint.
I'd rather leave it to user selection, if it is static or dynamic.

Re: Centred moving average Channel

PostPosted: Wed Mar 20, 2013 3:23 am
by Apprentice
Updated

Re: Centred moving average Channel

PostPosted: Tue Aug 26, 2014 2:16 pm
by klutzy
Proposed CMAC extension

1. Allow user to set MA span AND channel width, perhaps also the MA type.
Each channel width could be user multiplier times SdDev or ATR [user choice of span days].

2. Allow at least two such channels, inner and outer.

3. Plus options on line style/color/width.

I would try to set outer channel to be roughly "tangent" to inner.

This would be somewhat similar to J.M. Hurst cycles.

Re: Centred moving average Channel

PostPosted: Thu Aug 28, 2014 5:33 am
by Apprentice
Your request is added to the development list.

Re: Centred moving average Channel

PostPosted: Sat Aug 30, 2014 7:42 pm
by klutzy
yCMAC=8-28-2014 6.11.38 PM.png
I downloaded the CMAC.lua and supporting CMA.bin to D:\Program Files (x86)\Candleworks\FXTS2\indicators\Standard
and liked the result. Learned, however, that line widths of 2 or 3 can reset themselves to 1.

Then I copied the first file to CMAC-Copy.lua and proved that I can make inner and outer channels by using both copies.
Unfortunately, I cannot save my settings for the composite, so still hope for programmer to develop concept.

I did like the results with inner channel span of 15 days, with outer at 31 or 61 or 121. I attach the 15-121 example.
I set the outer channel mid line to white, because CMAC does not yet have the option to hide.

Note the overlaying text box, which should have the option to suppress.

I believe that this two centered MA channel approach sort of automates trendlines and can help to reveal cycles.
I view it as a simplified, manual, alternative to Hurst analysis.