When i print slowHTFEMA, its not printing correct value according to the secondary added series...
I keep SlowHTFEMAPeriod in onstatechange
else if (BarsInProgress == 2)
slowHTFEMA = EMA(SlowHTFEMAPeriod);
fastHTFEMA = EMA(FastHTFEMAPeriod);
baseHTFEMA = EMA(BaseHTFEMAPeriod)
if (baseHTFEMA[1] < slowHTFEMA[1]
{
go long
}

Comment