Hi,
Hi,
I’m considering to change to PRT. I just want to make sure that the only “special” indicator I’m using (mt4) is available.
The “indicator” comes from Gail Mercer and color volume bars depending on if it is a new high/low. It is not complicated but I cannot program. I’ve the code for mt4, but I assume that it cannot be copy/paste into PRT.
See page 3 in this pdf for a better clarifycation.
If this indicator is not copyrighted, it can be converted to PRT. If you have the source file (.mq4), I can have a look at the code between 2 other requests 🙂
Please find below the mt4 version translated to prorealtime code:
//PRC_Spec Volume | indicator
//30.11.2016
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
//converted and adapted from Metatrader4 version
//http://www.prorealcode.com/topic/volume-display-new-highlow/
if(High>High[1] and Low>=Low[1]) then //made higher high and higher low -> high bar
upvol = Volume
downvol = 0
neutralvol = 0
elsif(High>High[1] and Low<Low[1]) then //made higher high and lower low -> neutral bar or outside bar
upvol = 0
downvol = 0
neutralvol = Volume
elsif(High<=High[1] and Low<Low[1]) then //made lower high and lower low -> low bar
upvol = 0
downvol = Volume
neutralvol = 0
elsif(High<=High[1] and Low>=Low[1]) then //made lower high and higher low -> inside bar
upvol = 0
downvol = 0
neutralvol = 0
endif
return upvol coloured(0,0,255) as "up volume", downvol coloured(255,0,0) as "down volume", neutralvol coloured(128,128,128) as "neutral volume"
Will be posted to the Library too. Of course you’ll need Volume for the indicator to work (not the case for forex CFD contracts for instance ..). See screenshot attached of the indicator’s result on DAX30.
Indicator added to the Library : volume divergence indicator