Hello, had noticed that in the first version I posted had just one setting for the sensitivity on this version added a fast sensitivity and slow sensitivity.太虚一毫 wrote: Thu Oct 09, 2025 8:16 pm There are two algorithms in ! StepMA 3D.mq4: atr_Rng and atr_Atr. The atr_Rng algorithm is ! StepMA_3D_v3.01.mq4. However, in the ! StepMA 3D.mq4 indicator, when atr_Rng is selected, the display effect on the chart is noticeably different from ! StepMA_3D_v3.01.mq4. Could you have a look at ! StepMA 3D.mq4 when you have time to see if it is correct?
Yeah, they are quite different, and the older version repaints tried making many EA's a long time ago not knowing about the repainting issue, could never figure out the trades taken were never the same as the indicator showed. First thought it was my EA coding which isn't that great but later found out the way the old version was done was the problem. The code that deforms the StepMa and causes the repainting is this
double ATRmax=0,ATRmin=100000;
So, no matter how you use the Atr or the high/low range it is affected by this, in fact even the moving average you choose as well.
So really don't know how to make the newer version the same without making it repaint. Main thing is being aware of the repainting, and if you are comfortable with that then maybe use it in your trading.