Moving average with step

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

Moving average with step

Postby Alexander.Gettinger » Fri Mar 16, 2012 2:15 pm

This indicator is very similar to MVA, but it does not use all the values ​​for the calculation.

Formula:
MVA_S[i]=(Price[i]+Price[i-Step]+Price[i-2*Step]+...+Price[i-(Period-1)*Step])/Period.

For example, if Period=4 and Step=2:
MVA_S[i]=(Price[i]+Price[i-2]+Price[i-4]+Price[i-6])/4.

MVA_S.PNG


Download:
MVA_S.lua
(1.57 KiB) Downloaded 829 times


The indicator was revised and updated
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Moving average with step

Postby Alexander.Gettinger » Fri Apr 27, 2012 12:38 pm

MQL4 version of Moving average with step: viewtopic.php?f=38&t=16427
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk



Return to Custom Indicators

Who is online

Users browsing this forum: Baidu [Spider] and 207 guests