Give value of the volume of the N bar.
Syntax:
1 |
Volume[N] |
Volume represent the quantity of shares traded during the chosen timescale.
Interpretation :
Volume can indicate the strength of the current price change and reflect the emotionnal state of investors over a fixed period.
Example:
1 2 3 4 5 6 7 |
//looking for 50 days statistical abnormal volume vol = Volume averagingvol = 3*STD[50](exponentialaverage[50](vol))+exponentialaverage[50](vol) RETURN vol, averagingvol |
Hi,
In the volume indicator, there are green volume histogram and red volume histogram, while this function only allow us to use 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=0
elsif Close=Close[1] and Rvol[1]>0 then
Gvolume=volume
RVolume=0
endif
Volume histogram is red or green depending only on the color of the candlestick.
Hello,
Volume is green histogram if close[0]>close[1] and is red if close[0]<close[1]
close[0]<close[1]
I have problems in writing Nicolas, some parts are not pubblished….why??
<close[1]
#maximus78: sorry, but shouldn’t be the volume green: if close>open and red: if close<open?