FX Trend

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

Moderator: admin

FX Trend

Postby Alexander.Gettinger » Sat Aug 18, 2018 9:20 pm

Formulas:
FXT = K*((Close-L1)/(D1*Short_Length)+(Close-L2)/(D2*Mid_Length)+(Close-L3)/(D3*Long_Length)), where
D1 = H1-L1,
D2 = H2-L2,
D3 = H3-L3,
L1, H1 - lowest and highest prices at range from (i-Short_Length+1) to (i),
L2, H2 - lowest and highest prices at range from (i-Mid_Length+1) to (i),
L3, H3 - lowest and highest prices at range from (i-Long_Length+1) to (i),
K = 100/(1/Short_Length+1/Mid_Length+1/Long_Length).

FX Trend.PNG


Download:
FX Trend_JS.jsl
(2.39 KiB) Downloaded 445 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 7 guests