I'm trying to add the buy sell volume if the Close of the current bar is the same as the previous bar. It's not adding the buy or the sell volume. Is there something that I'm doing wrong?
if (Close[0] == Close[1])
{
buyvolume += BuySellVolume1.Buys[0];
sellvolume += BuySellVolume1.Sells[0];
}
else if (Close[0] != Close[1])
{
buyvolume = 0;
sellvolume = 0;
}

Comment