but it doesnt behave as i want it to.
protected override void Initialize()
{
Add(PeriodType.Day, 1);
CalculateOnBarClose = true;
}
protected override void OnBarUpdate()
{
if (CurrentBars[0] < 1 || CurrentBars[1] < 1)
{
Print ("return");
return;
}
Print ("works");
}
But as far as i am concerned, after the first day has passed it should output "works" instead of "return" but that doesnt work.
anyone an idea why.
Comment