Suppose you already have defined a new function/indicator f which is defined for all unit steps. It may simply be an usual indicator as eg ema(10).
I try to define a new function g which corresponds to the minimum value of f on a past interval (t-K1,t-K2) where K1 and K2 are defined constants.
For small values of K1 and K2, it can be done iteratively. But I would like to try to obtain this function g for large values of K1 (typically 200) and values of K2 around 10.
Is there an easy way to define g analytically?
Thanks.
I try to define a new function g which corresponds to the minimum value of f on a past interval (t-K1,t-K2) where K1 and K2 are defined constants.
For small values of K1 and K2, it can be done iteratively. But I would like to try to obtain this function g for large values of K1 (typically 200) and values of K2 around 10.
Is there an easy way to define g analytically?
Thanks.
Comment