Exponential Smoothing with Trend Adjustment

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

Moderator: admin

Exponential Smoothing with Trend Adjustment

Postby Alexander.Gettinger » Sat Mar 30, 2019 11:45 am

Formulas:
EMATA[i] = Alpha*Price[i-1]+(1-Alpha)*(EMATA[i-1]+Trend[i-1]),
Trend[i] = Beta*(EMATA[i]-EMATA[i-1])+(1-Beta)*Trend[i-1].

EMA with Trend Adjustment.PNG


Download:
EMA with Trend Adjustment_JS.jsl
(1.87 KiB) Downloaded 213 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: Majestic-12 [Bot] and 5 guests