Alternative OBV

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

Moderator: admin

Alternative OBV

Postby Alexander.Gettinger » Fri Dec 07, 2018 1:15 pm

The classic formula
Close > previousClose
OBV = OBVprevious + VOLUME
Close < previousClose
OBV = OBVprevious - VOLUME
IF Close = previousClose
OBV = previousOBV

1. Alternative
(Close > Open)
OBV = previousOBV + (Volume* (Close-Open) / (High-Low));
(Close < Open)
OBV = previousOBV - (Volume * (Open-Close) / (High-Low));

2. Alternative
OBV= previousOBV + (Volume * (High-Open) / (High-Low)) - (Volume * (Open-Low) / (High-Low)).

Alternative OBV.PNG


Download:
Alternative OBV_JS.jsl
(2.91 KiB) Downloaded 440 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 8 guests