Page 1 of 2

Volume

PostPosted: Mon Jun 01, 2020 8:26 am
by Apprentice
AUDUSD H1 (06-01-2020 1335).png

Will color volume bar based on candle direction.
Based on request.
viewtopic.php?f=27&t=69933
Volume.lua
(3.53 KiB) Downloaded 681 times

Re: Volume

PostPosted: Fri Jun 12, 2020 10:38 am
by TastyTreats
Hi Apprentice

Is it possible to have this for MT4 as well please.

Thanks

Re: Volume

PostPosted: Sun Jun 14, 2020 7:20 pm
by Apprentice
Your request is added to the development list.
Development reference 1477.

Re: Volume

PostPosted: Tue Jun 16, 2020 7:16 am
by Apprentice
It's not possible. MT4 doesn't have "DIRECTIONAL_REAL_VOLUME"

Re: Volume

PostPosted: Fri Jun 19, 2020 5:02 pm
by TastyTreats
Hi Apprentice

Thanks for the reply. Can it be implemented using the following code snippet?

void Vcolor(int p)
{
if(Close[p] lt Open[p])
{
VolBuffer1[p]=Volume[p];
VolBuffer2[p]=0;
lastcolor=Red;
}
if(Close[p] gt =Open[p])
{
VolBuffer1[p]=0;
VolBuffer2[p]=Volume[p];
lastcolor=Green;
}

}

Thanks

Re: Volume

PostPosted: Sun Jun 21, 2020 3:56 am
by Apprentice
Exactly this logic is implemented.
Can you clarify, deviations if any?

Re: Volume

PostPosted: Tue Jun 30, 2020 5:28 am
by TastyTreats
Is it possible to make it an MT4 version without Direct Real volume and using the code above to colour the volume bars to the same colour as the price bars e.g. bullish price bar (green) creates a green volume bar and vise versa for bearish bars.

Re: Volume

PostPosted: Tue Jun 30, 2020 8:48 am
by Apprentice
It's not possible. MT4 doesn't have "DIRECTIONAL_REAL_VOLUME"

Re: Volume

PostPosted: Thu Jul 02, 2020 6:42 pm
by TastyTreats
OK Thanks for taking the time to look anyway.

Re: Volume

PostPosted: Fri Jul 10, 2020 8:24 am
by taipan
Here you go, mt4 TicksSeparateVolume.
TicksSeparateVolume.ex4
MT4 TicksSeparateVolume
(10.66 KiB) Downloaded 456 times