For Price there is a block that allows you to lag price elements.
Is there an equivalent of this for defined variables?
No, there is no lag block for user defined variables. The user defined variables are scalar in the time dimension. We do not store the time history so a lag function will not work on this.