I am trying to draw a arrow and label in the chart based in the current and previous volume.
For example if the SUM of the last 5 volume is > 300 I would like to draw a arrow in the current candle.
The problem is I don't know how get the volume from the candles. I am trying with the below code only for the last 2 candles.
double x = VOL()[0];
double y = VOL()[1];
double z = x+y;
if (z<300){
Plot0.Set(Close[0]);
}
I will apreciate your support.
Regards.
Comment