it is showing the same value for Buy & Sell Volumes.
when I checked the code for the Indicator. It is adding (Sells + Buys) to get Buys and it looks like Buys is always Zero.
protected override void OnBarUpdate()
{
if (CurrentBar < activeBar || CurrentBar <= BarsRequiredToPlot)
return;
// New Bar has been formed
// - Assign last volume counted to the prior bar
// - Reset volume count for new bar
if (CurrentBar != activeBar)
{
Sells[1] = sells;
Buys[1] = buys + sells;
buys = 0;
sells = 0;
activeBar = CurrentBar;
}
Sells[0] = sells;
Buys[0] = buys + sells;
}
See below screenshot which shows the Indicator platting the same values for Buys & Sells and the Data Box showing the same.
Please fix the indicator
Comment