What is wrong with my code ?
if (BarsInProgress == 0)
{
if (
((Close[0] > Open[0])
&& (BarsSinceExitExecution(0, "", 0) > 10))
{
EnterLong(Convert.ToInt32(DefaultQuantity), "");
}
}
else if (BarsInProgress == 1)
{
if (
((Close[0] > Open[0])
&& (BarsSinceExitExecution(0, "", 0) > 20))
{
EnterLong(Convert.ToInt32(DefaultQuantity), "");
}
}

Comment