if (BarsInProgress == 0)
{
if (CrossAbove(EMA(Fast), EMA(Slow), 1))
{
//1 = secondary bars,
EnterLong(1, 1, "Long");
}
if (BarsInProgress == 1)
{
if (CrossAbove(EMA(BarsArray[0],Fast), EMA(BarsArray[0],Slow), 1))
{
//1 = secondary bars,
EnterLong(1, 1, "Long");
}
if (BarsInProgress == 0)
{
if (CrossAbove(EMA(BarsArray[0],Fast), EMA(BarsArray[0],Slow), 1))
{
//1 = secondary bars,
EnterLong(1, 1, "Long");
}

Comment