Indicators: VWAP Custom Position - page 3

Vinh Vu  

I figured it out! Ignore the previous comments and do the following:


1. Replace line 133 with:

// Previous line was `iVolume[i]=(double)volume[i];`
iVolume[i]=(double)tick_volume[i];


2. Replace line 159 with:

// Previous line was `vwapBuffer[i]= sumPrice/sumVol;`
if (sumVol > 0) vwapBuffer[i]= sumPrice/sumVol;
Reason: