I've added:
protected override void Initialize()
{
Add(PeriodType.Tick, 1);
CalculateOnBarClose = true;
}
protected override void OnBarUpdate()
{
if (BarsInProgress == 0)
{...
if (...
{
EnterLongLimit(1, true, 1, longEntryPrice, "Long");
}
else
{
return;
}
}

Comment