Hi there, I am trying to write up an indicator but I am struggling at the psudo code for creating a new indicator which uses the PREVIOUS value combined with the CURRENT value:

https://www.prorealcode.com/prorealtime-indicators/qqe-quantitative-qualitative-estimation/

AtrRsi = abs(RsiMa[1] - RsiMa)

MaAtrRsi = exponentialaverage[WildersPeriod](AtrRsi)

I need to do the above, but at initialization time, I do not know how to reference RsiMA[1] (the previous value)

Could someone point me to another indicator which does something similar?