Weird Param results

This does not work:

ii=10^(int(log10(c))-2);
aa=0.5*(HighestVisibleValue(c)+LowestVisibleValue(c));
cc=Param("price",aa,LowestVisibleValue(c),HighestVisibleValue(c),ii);

I'm trying to do context sensitive parameter, setting the min and max to the visible price with increment (ii) tied to the current price. supposedly the highest/lowest visiblevlaue is a number, which is required by param. when i go to param box, i reset all, and can not change the param value. any ideas on how this can work? thx. \jeff

@overinvested welcome to this forum.

Please, review this previous thread (and its links).

See also the note in the Param() function documentation:

WARNING: default/min/max/step parameters have to be CONSTANT numbers. This is because these values are cached and are not re-read during subsequent formula evaluations.

1 Like