How can i get the Volumes color (high/low values)

Back to topics list To post a new topic, please log in or register
avatar
127
wemersonrv 2015.07.03 14:35
 

Hi all.

 

How can I get the Volume color ? Using Volume[0], or iVolume() function I can get only the amount, not if it is on High/Low value.

See the Volumes indicator properties:

Volumes IndicatorHow  

avatar
54
PomeGranate 2015.07.06 08:31 #
 

untested, uncompiled, just considering the logic:

if (vol_bar_0>vol_bar_1) color=green;

if (vol_bar_0<vol_bar_1) color=red; 
avatar
12988
WHRoeder 2015.07.06 13:16 #
 
wemersonrv: How can I get the Volume color ? Using Volume[0], or iVolume() function I can get only the amount, not if it is on High/Low value.

Volume dosn't have color so of course you can't use Volume[] or iVolume.

Your custom indicator has colors, so you have to get the values via iCustom. Histograms have two buffers, and color depends on the sign of buffer1[i] - buffer2[i].

avatar
127
wemersonrv 2015.07.11 05:19 #
 
Ah ok... Thanks.
avatar
4
Ben-gold 2015.07.11 12:47 #
 
Thanks a lot! Very helpful
Back to topics list  

To add comments, please log in or register