Digital adaptive Moving Average (XMA)

Here you can post and download custom indicators written in JavaScript.

Moderator: admin

Digital adaptive Moving Average (XMA)

Postby Alexander.Gettinger » Tue Aug 07, 2018 12:24 pm

Digital adaptive Moving Average XMA calculate Moving Averages with a digital filter.

Formulas:
XMA[i] = MA[i], if Abs(MA[i]-MA[i-1])>=Step, else
XMA[i] = XMA[i-1], where
MA - moving average with [Length] number of periods and [Method] type,
Abs - absolute value.

XMA.PNG


Download:
XMA_JS.jsl
(2.54 KiB) Downloaded 486 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Return to JavaScript Indicators and Strategies

Who is online

Users browsing this forum: No registered users and 23 guests