Hi, everybody,

Let's say, there is a portfolio of 20+ market-systems which use only 4 algo functions but with different parameters (assets,TF,etc).

I read/store all params in a array of structs- one field of which is a pointer to the algo function, - and switch to the relevant set in a loop of algos.

The problem is with static vars - which of course get changed with every call to the same function- even though it is a different component.

Is there an elegant way in Lite-C to achieve what I want without having to create multiple clones of same algo functions?