Hi All,
In the default volume indicator, there are green volume histogram and red volume histogram to indicate up volume/ down volume.
while the native function volume(n) only allow provide the abstract volume(regardless of green volume or red volume)
How can i specifically use green volume/red volume instead ?
i tried to create 2 separate volume below base on the function but it seems incorrect.
Can provide some guidance ? Thanks
if Close > Close[1] then
Gvolume=volume
RVolume=0
elsif Close 0 then
Rvolume=volume
GVolume=0elsif Close=Close[1] and Gvol[1]>0 then
Rvol=volume
GVol=0
elsif Close=Close[1] and Rvol[1]>0 then
Gvolume=volume
RVolume=0
endif