Centred moving average

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

Re: Centred moving average

Postby Tigre3 » Sat Nov 24, 2012 6:45 am

Apprentice wrote:This is possible.
But i will prefer different Color, not Style difference, compatibility issue,
for line style i have to use two streams, not one as now.
Is this satisfactory.


Ok, no problem, it's ok too :)
Tigre3
 
Posts: 65
Joined: Sun Oct 14, 2012 4:24 pm


Re: Centred moving average

Postby arstechnica » Sun Nov 25, 2012 9:43 am

Dear Mario,

it should be very usefull and I suppose simple to create a CMA speed curve to plot on the graph.

CMA speed: CMA(period)- CMA (Period-1)

Alnd also another curve:

CMA difference: CMA1-CMA2

to plot on the graph.

Please make this possible

Regards

Salvatore
arstechnica
 
Posts: 48
Joined: Sat Sep 29, 2012 4:25 am

Re: Centred moving average

Postby Apprentice » Sun Nov 25, 2012 11:12 am

For CMA difference try Two Averages Oscillator.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Centred moving average

Postby arstechnica » Sun Nov 25, 2012 1:51 pm

I know that is almost the same, but I need the difference to be plot on the chart. The same for the speed.

They are both very usefull for cyclic analisys

Can you make this 2 very fast indicators?

Regards

Salvatore
arstechnica
 
Posts: 48
Joined: Sat Sep 29, 2012 4:25 am

Re: Centred moving average

Postby Apprentice » Sun Nov 25, 2012 2:52 pm

Both Added to topmost post.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Centred moving average

Postby Tigre3 » Sun Nov 25, 2012 3:38 pm

Could you make a speed indicator for the CMADifference too?

Something like this:

CMADSpeed= CMAD[]-CMAD[-1]

Thanks:)

(With this indicator you fulfill my request in this topic: http://fxcodebase.com/code/viewtopic.php?f=27&t=24602&p=42392#p42392)
Tigre3
 
Posts: 65
Joined: Sun Oct 14, 2012 4:24 pm

Re: Centred moving average

Postby arstechnica » Mon Nov 26, 2012 1:34 am

Dear Mario,

thank You for your fast reply.

There is something wrong in the calculation of CMAD and CMAS

CMAD must be = CMA(period1)-CMA(period2) calculated in the same bar. If I plot CMA1 andCMA2 and then CMAD the result it is not the difference actually

CMAS need only one period, actually we have 2 periods:

CMAS = CMA (actual bar)- CMA (BAR-1)

I apologise if I was not clear in my request.

Please update the indicators.

Regards

Salvatore
arstechnica
 
Posts: 48
Joined: Sat Sep 29, 2012 4:25 am

Re: Centred moving average

Postby Apprentice » Mon Nov 26, 2012 4:06 am

Is not your fault.
I have correct formula.
Unfortunately I mix up the names.
Corrected.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Centred moving average

Postby arstechnica » Mon Nov 26, 2012 6:32 am

Thank You,

now works well..

Just on thing:

Id I put on CMAD 25 and 50 as periods it explode.. with other periods it work well
arstechnica
 
Posts: 48
Joined: Sat Sep 29, 2012 4:25 am

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: ahmedalhosenyy and 66 guests