I have a stock (prices) that change over time, I want to limit its increase, for this I need the value of my stock (prices) at (time-1) to determine its evolution as:
Stock (price) at (time) = stock (prices) at (time-1) * growth rate
Can you tell me the way to fixe the stock (prices) at (time-1) in may model, or how to determine the average stok (prices) in the last 05 years.
Thank you in advance
how to fix the value of a variable var in the past (time-1),
Re: how to fix the value of a variable var in the past (time
I am not sure about what you mean by fixing a value. If you mean register the value at time t-1 to use it at time t, then you can either use a level to store the value, or use the delay fixed function with a delay of time step. You can too use the smooth function over say a 5 time unit period, to use a kind of average.
Regards.
JJ
Regards.
JJ
Re: how to fix the value of a variable var in the past (time
Thank you so much for your answer to may question, I used the DELAY FIXED function, I think is a simple way .
Thank you for your help
Thank you for your help