Page 1 of 1

how to fix the value of a variable var in the past (time-1),

Posted: Fri Dec 11, 2015 2:23 am
by menade
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

Re: how to fix the value of a variable var in the past (time

Posted: Sun Dec 13, 2015 3:19 pm
by LAUJJL
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

Re: how to fix the value of a variable var in the past (time

Posted: Wed Dec 16, 2015 11:15 pm
by menade
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