Hi brains, I want to find the highest and lowest EMA between my current barindex to the previous tradeindex, but the following simple code returns nothing. Please advise what I have done wrong? Much appreciated. EMA=exponentialaverage[10](close) HH=highest[barindex-tradeindex](EMA) LL=lowest[barindex-tradeindex](EMA) return HH as "HighestEMA", LL as "LowestEMA"