Thank you for your response.
I do not beleive I fully understand but I am going to try an example here, let me know if this it what you meant.
We will take the first five minute volumes, store them in individual doubles and then average those values:
if(Bars.BarsSinceSession == 5) { vol1 = Volume[4]; vol2 = Volume[3]; vol3 = Volume[2]; vol4 = Volume[1]; vol5 = Volume[0]; avgVol = (vol1 + vol2 + vol3 + vol4 +vol5)/5; }
Leave a comment: