MultiVote OBV

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

Moderator: admin

MultiVote OBV

Postby Alexander.Gettinger » Wed May 02, 2018 11:58 am

Original OBV only compares Closing Price.
MVOVB takes into account all price components.
This has resulted with higher sensitivity compared to the original.

if HIGH >previous HIGH then HIGHVOTE =1
if HIGH < previous HIGH then HIGHVOTE =-1

if LOW >previous LOW then LOWVOTE =1
if LOW < previous LOW then LOWVOTE =-1

if CLOSE>previous CLOSE then CLOSEVOTE=1
if CLOSE < previous CLOSE then CLOSEVOTE =-1

TOTALVOTE = HIGHVOTE + LOWVOTE + CLOSEVOTE
MVOBV = previousMVOBV + TOTALVOTE * Volume
MVOBV = previousMVOBV + TOTALVOTE * Volume

MV_OVB.PNG


Download:
MV OVB_JS.jsl
(2.14 KiB) Downloaded 399 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 11 guests