Volume

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Volume

Postby Apprentice » Mon Jun 01, 2020 8:26 am

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 136 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 26183
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Volume

Postby TastyTreats » Fri Jun 12, 2020 10:38 am

Hi Apprentice

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

Thanks
TastyTreats
 
Posts: 10
Joined: Mon Jun 08, 2020 7:07 am

Re: Volume

Postby Apprentice » Sun Jun 14, 2020 7:20 pm

Your request is added to the development list.
Development reference 1477.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 26183
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Volume

Postby Apprentice » Tue Jun 16, 2020 7:16 am

It's not possible. MT4 doesn't have "DIRECTIONAL_REAL_VOLUME"
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 26183
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Volume

Postby TastyTreats » Fri Jun 19, 2020 5:02 pm

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
TastyTreats
 
Posts: 10
Joined: Mon Jun 08, 2020 7:07 am

Re: Volume

Postby Apprentice » Sun Jun 21, 2020 3:56 am

Exactly this logic is implemented.
Can you clarify, deviations if any?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 26183
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Volume

Postby TastyTreats » Tue Jun 30, 2020 5:28 am

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.
TastyTreats
 
Posts: 10
Joined: Mon Jun 08, 2020 7:07 am

Re: Volume

Postby Apprentice » Tue Jun 30, 2020 8:48 am

It's not possible. MT4 doesn't have "DIRECTIONAL_REAL_VOLUME"
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 26183
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Volume

Postby TastyTreats » Thu Jul 02, 2020 6:42 pm

OK Thanks for taking the time to look anyway.
TastyTreats
 
Posts: 10
Joined: Mon Jun 08, 2020 7:07 am

Re: Volume

Postby taipan » Fri Jul 10, 2020 8:24 am

Here you go, mt4 TicksSeparateVolume.
TicksSeparateVolume.ex4
MT4 TicksSeparateVolume
(10.66 KiB) Downloaded 5 times
taipan
 
Posts: 2
Joined: Fri Jul 10, 2020 7:31 am


Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 14 guests