Dynamic High/Low Band Overlay

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

Moderator: admin

Dynamic High/Low Band Overlay

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

DHLBO:

Formulas:
Up band = Min+(Max-Min)*Step,
Dn band = Max-(Max-Min)*Step, where
Min, Max - minimum and maximum prices at range from (i-Look_Back_Length+1) to (i).

DHLBO_JS.PNG


Download:
DHLBO_JS.jsl
(1.58 KiB) Downloaded 387 times


DHLPBO:

Formulas:
Up band[i] = Max-(Max-Min)*(MaxIndex-i)*Step/100,
Dn band[i] = Min+(Max-Min)*(MinIndex-i)*Step/100, where
Min, Max - minimum and maximum prices at range from (i-Look_Back_Length+1) to (i),
MinIndex, MaxIndex - positions of Min and Max.

DHLPBO_JS.PNG


Download:
DHLPBO_JS.jsl
(1.64 KiB) Downloaded 376 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 25 guests