IT PRINT UP TO LOADED BUT WILL NOT CONTINUE TO PRIN
on bar update()
EMA2.Set(EMA(nEMADays)[0]);
if(bShowEMA == true)
{
if(CurrentBar > 1)
{
if(Value[0]> Value[1])
{
PlotColors[0][0] = eEMALongBrushColor;
}
else
{
PlotColors[0][0] = eEMAShortBrushColor;
}
}
}
}
I have it solved
if(CurrentBar > 1) remove but I had to use Bars.CurrentBar > nSwingIndex so I wouldn't get an array error