private int currVol = 0; private int prevVol = 0; private int upVol = 0; private int downVol = 0;
CalculateOnBarClose = false;
currVol = Volume[0] - prevVol; prevVol = Volume[0]; if (Close[0] > Open[0]) upVol = upVol + currVol; else if (Close[0] < Open[0]) downVol = downVol + currVol;
Are you saying that 'Volume' distinguishes between up volume and down volume? I thought Volume just counts shares/contracts traded in either direction. It certainly seems to do so from the up-down volume indicator.
Or: does the close versus open business behave differently if you are not waiting until the close, i.e. working intrabar in which case close versus open = each subsequent tick one after another?
Comment