thomdel wrote: Thu Sep 25, 2025 9:04 pm
Respected mrtools Sir,
Thanks for the consideration. No Problem.
It was just a idea as : The indicator : ! StepMA_3D_v3.01 : showed good results with default params.
Kindly Try If manageable in near future otherswise it's ok.
Thanks for your Support & Generosity.
Thanks a Lot.
Hello , kept going around and round with this indicator because of the way the atr minimum and maximum was being done, finally dawned on me this is exactly the same problem as the step stochastic which Mladen fixed.
This was his explanation
Since I first saw it, I have always liked the idea of a step stochastic. But every single version I have seen had two very serious flaws:
minimum and maximum average true range are inherited from a previous bar
and thus it makes it depend on the number of bars used in calculations. The rest of the calculations depends on that "inherited" value, and, since with time the minimum and the maximum are just getting bigger (maximum) and smaller (minimum), the "step quality" of the step stochastic is simply lost when big enough number of bars pass. So the step stochastic becomes deformed and is not a "step" stochastic any more on newest bars.
This one solves those issues. The idea is simple — instead of inheriting previous state of ATR minimum and maximums, the minimum and maximum are cheсked in a "Window" number of past bars. That way it is not deformed and is reacting to latest data fairly good. Compared to the "old" ones you will notice that at the beginning they have the same values (since the "old" still did not "deform") but as time passes the differences grow bigger and bigger. That is the effect of not inheriting and in the end of not repainting.
So anyway, used the fixed step stochastic code to make a new non-repainting version. The results are different so posting it here to see if you still want to do the modifications you requested.