OHLC Volume

Custom MT4 expert advisors published here.

Moderator: admin

OHLC Volume

Postby Apprentice » Thu Mar 16, 2017 5:02 pm

unnamed.png


LUA Original: viewtopic.php?f=17&t=3611

Description:

This indicator is the MT4 version of the LUA original which separates the volume in correspondence to the open, close, high and low values of each bar.

Formulas used:

UP volume=Volume*UP_Coeff/(UP_Coeff+DN_Coeff),
DN volume=Volume*DN_Coeff/(UP_Coeff+DN_Coeff), where
UP_Coeff=High-Open,
DN_Coeff=Close-Low.

Also included the Histogram showing the difference between Up and Down volumes. When the Up is higher than the Down then the histogram is green with the difference between both volumes. Conversaly red when the down is greater than upper.

OHLC_Volume.mq4
(3.67 KiB) Downloaded 782 times

OHLC_Volume_Histo.mq4
(4.49 KiB) Downloaded 757 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Return to MT4 Expert Advisors

Who is online

Users browsing this forum: Bing [Bot] and 6 guests