Hi.
Based on this EFS:
where volume is being accumulated on an intraday basis, I'd like to know if it's possible to do a similar indicator but accumulating the volume on a daily basis.
My idea is to be possible to select the number of days that we want to use for volume accumulation, on a daily chart.
Basically I want to have the possibility to see, on an accumulation view, the volume traded on a 5 days (1 week) or 10 days (2 weeks) daily bars.
Regards.
Based on this EFS:
Code:
/*********************************** Provided By : eSignal. (c) Copyright 2004 ***********************************/ function preMain() { setStudyTitle("Cumulative Volume "); setCursorLabelName("CumVol"); setPlotType(PLOTTYPE_HISTOGRAM); setDefaultBarThickness(3); } var vVol = 0; var vLastVol = 0; var TotVol = 0; function main() { if (getBarState() == BARSTATE_NEWBAR) { if (getDay(0) != getDay(-1)) TotVol = 0; vLastVol = 0; } else { vLastVol = vVol; } vVol = volume(); TotVol += (vVol - vLastVol); return TotVol; }
My idea is to be possible to select the number of days that we want to use for volume accumulation, on a daily chart.
Basically I want to have the possibility to see, on an accumulation view, the volume traded on a 5 days (1 week) or 10 days (2 weeks) daily bars.
Regards.