Trend force oscillator

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

Moderator: admin

Trend force oscillator

Postby Alexander.Gettinger » Sat Jan 06, 2018 6:27 pm

Formulas:
Trend Force[i] = Up[i]-Dn[i], where
Up[i] = maximum (MaxPrice-ATR_Coeff*ATR) at range from (i-Period+1) to i,
Dn[i] = minimum (MinPrice+ATR_Coeff*ATR) at range from (i-Period+1) to i,
MaxPrice, MinPrice - maximum and minimum prices at range from (i-ATR_Period+1) to i,
ATR - Average True Range with ATR_Period.

Trend_Force_JS.PNG


Download:
Trend_Force_JS.jsl
(2.84 KiB) Downloaded 438 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 5 guests