Centred moving average Channel

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Centred moving average Channel

Postby Apprentice » Mon Feb 25, 2013 7:26 am

CMC.png

Generate Channel around Centered moving average.
In pips or percentage.
CMAC.lua
(5.84 KiB) Downloaded 837 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 394 times

Multiple OCMA CMAC.lua
(8.87 KiB) Downloaded 349 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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 22471
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Centred moving average Channel

Postby lucmat » Mon Feb 25, 2013 2:46 pm

Great work Apprentice :mrgreen:

Thanks
lucmat
 
Posts: 57
Joined: Sat Aug 13, 2011 12:14 pm


Re: Centred moving average Channel

Postby lucmat » Tue Mar 05, 2013 12:46 pm

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
lucmat
 
Posts: 57
Joined: Sat Aug 13, 2011 12:14 pm

Re: Centred moving average Channel

Postby Thumper » Thu Mar 14, 2013 11:39 pm

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.
Thumper
 
Posts: 11
Joined: Sun Feb 05, 2012 5:19 pm

Re: Centred moving average Channel

Postby Apprentice » Sat Mar 16, 2013 8:35 am

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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 22471
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Re: Centred moving average Channel

Postby klutzy » Tue Aug 26, 2014 2:16 pm

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.
klutzy
 
Posts: 9
Joined: Mon Aug 25, 2014 2:25 pm

Re: Centred moving average Channel

Postby Apprentice » Thu Aug 28, 2014 5:33 am

Your request is added to the development list.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 22471
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Centred moving average Channel

Postby klutzy » Sat Aug 30, 2014 7:42 pm

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.
klutzy
 
Posts: 9
Joined: Mon Aug 25, 2014 2:25 pm

Next

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot] and 7 guests