Average Sentiment Oscillator

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

Moderator: admin

Average Sentiment Oscillator

Postby Alexander.Gettinger » Sat Jan 06, 2018 12:09 pm

Formulas:
Bulls = MA(Bu) with [Smoothing_Length] number of periods and [MA_Method] type,
Bears = MA(Be) with [Smoothing_Length] number of periods and [MA_Method] type, where
For Combined Mode:
Bu = (IBu+GBu)/2,
Be = (IBe+GBe)/2,
For Intra-bar Mode:
Bu = IBu,
Be = IBe,
For Group Algorithm Mode:
Bu = GBu,
Be = GBe.
For All Modes:
IBu = 50*(Close-Low+High-Open)/(High-Low),
IBe = 50*(High-Close+Open-Low)/(High-Low),
GBu = 50*(Close-GL+GH-GO)/(GH-GL),
GBe = 50*(GH-Close+GO-GL)/(GH-GL),
GO[i] = Open[i-Range_Length],
GL[i] - minimum value of High price at range from (i-Range_Length+1) to (i),
GH[i] - maximum value of Low price at range from (i-Range_Length+1) to (i).

ASO_JS.PNG


Download:
ASO_JS.jsl
(5.39 KiB) Downloaded 361 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 21 guests