protected override void OnBarUpdate()
{
if (CurrentBar < activeBar)
{
Values[0].Set((double)alSells[CurrentBar]);
Values[1].Set((double)alBuys[CurrentBar]);
return;
}
else if (CurrentBar != activeBar)
{
//
/* previousVol = 0;
alBuys.Insert(Math.Max(activeBar, 0), Historical ? 0 : buys);
alSells.Insert(Math.Max(activeBar, 0), Historical ? 0 : sells);
buys = 0;
sells = 0;
activeBar = CurrentBar; */
}
Comment