I've learned I can't do this like that, what was my first thought:
protected override void Initialize()
{
Add(PeriodType.Day,1);
Add(PeriodType.Minute,60);
Add(EMA(BarsArray[1],20)); //wrong

Add(EMA(BarsArray[2],20));
}
So what's the solution?
Thanks

Comment