¿Any solution for this?
Thanks!!!
protected override void OnBarUpdate()
{
if (CurrentBars[0] < 1)
return;
// Set 1
if (Bars.IsFirstBarOfSession == true)
{
Mínimodelas8h = Low[0];
}
// Set 2
if ((CrossBelow(Low, Mínimodelas8h, 1))
&& (Times[0][0].TimeOfDay <= new TimeSpan(8, 30, 0)))
{
EnterShort(Convert.ToInt32(DefaultQuantity), @"MBSRacorto");
}
// Set 3
if (Bars.IsFirstBarOfSession == true)
{
Máximodelas8h = High[0];
}
// Set 4
if ((CrossAbove(High, Máximodelas8h, 1))
&& (Times[0][0].TimeOfDay <= new TimeSpan(8, 30, 0)))
{
EnterLong(Convert.ToInt32(DefaultQuantity), @"MBSRalargo");
}
}
}
}
Comment