Calculate = Calculate.OnEachTick;
protected override void OnBarUpdate()
{
int pace = 0;
int i = 0;
while(i < CurrentBar)
{
TimeSpan ts = Time[0] - Time[i];
if (ts.TotalSeconds < period)
pace += Bars.BarsPeriod.Value;
else break; ++i;
}
it must be halloween, bcuz this is very scary, lol

Leave a comment: