Lows[1][0] < Closes[1][1]
Lows[1][0] < Lows[1][1]
else if (State == State.Configure)
{
AddDataSeries(BarsPeriodType.Minute, 1);
}
}
protected override void OnBarUpdate()
{
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 1)
return;
// Set 1
if (
Low[0] < Close[1]
&& (
(BarsSinceExitExecution(0, "", 0) > 10)
|| (BarsSinceExitExecution(0, "", 0) == -1)
)
)
{
EnterLong(Convert.ToInt32(DefaultQuantity), "");
}
// Set 2
if (
Lows[1][0] < Lows[1][1]
// Lows[1][0] < Closes[1][1]
)
{
ExitLong(Convert.ToInt32(DefaultQuantity), "", "");
}
}

Comment