Centred moving average

Custom MT4 expert advisors published here.

Moderator: admin

Centred moving average

Postby Alexander.Gettinger » Wed Aug 14, 2013 2:26 pm

Original LUA indicator: http://fxcodebase.com/code/viewtopic.php?f=17&t=24476.

Formulas:
CMA[i] = SMA[i+Length/2] for all bars except the last Length/2 bars,
CMA[i] = (Sum of the prices(from (i-Length/2) to last bar)+(Last bar price)*(Length/2-i-1))/Length.

CMA_MQL.PNG


Download:
CMA.ex4
(4.79 KiB) Downloaded 1044 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk



Return to MT4 Expert Advisors

Who is online

Users browsing this forum: Google [Bot] and 20 guests