time as an endogenous variable

Hi,
y=theta+e
Suppose part of my model is thetabar, which is an average past y up to this point : y1+y2+y3..+yt/t
To do this time is an endogenous variable t=t(-1)+1
However time is not stationary, has no deterministic steady state.
Is there a way to do this?
I understand there is a trend option for the observational variable. But I don't think it works here. This is a calibration, no data imported, ie. y does not come from data and there is no datasheet to be imported for y. y has its own dynamic evolution equation.
y=theta+e
Suppose part of my model is thetabar, which is an average past y up to this point : y1+y2+y3..+yt/t
To do this time is an endogenous variable t=t(-1)+1
However time is not stationary, has no deterministic steady state.
Is there a way to do this?
I understand there is a trend option for the observational variable. But I don't think it works here. This is a calibration, no data imported, ie. y does not come from data and there is no datasheet to be imported for y. y has its own dynamic evolution equation.