I was looking to reconstruct a 1 tick chart with VOL indicator. If the VOL of the current bar is grater than 5 hold that value and keep adding if the values are grater than 5 until. For example:
tick1 - 7
tick2 - 5
tick3 - 10
tick4 - 4
the sum of the above should be 22 because it’s calculating anything above 5.
Would something like the below work:
if (VOL[0] >= 5)
{
largevolume++;
Print …. +largevolume;
}
else if (VOL[0] < 5)
{
largevolume = 0;
}

Comment