MA Trend indicator

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

Moderator: admin

MA Trend indicator

Postby Alexander.Gettinger » Fri Dec 07, 2018 2:34 pm

Indicator analyses [Count_MA] moving averages with first period [Start_Period] and step [Step_Period].
MA_Trend=Sum(S)/Count_MA, where
S(i)=1 if Price>MA(i) and S(i)=-1 if Price<MA(i).

MA_Trend.PNG


Download:
MA_Trend_JS.jsl
(4.17 KiB) Downloaded 437 times


For this indicator must be installed Averages indicator (viewtopic.php?f=17&t=2430).
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 9 guests