Page 2169 of 2169

Re: MT4 Indicator requests and ideas

Posted: Thu Oct 09, 2025 10:00 am
by andrei-1
TEAMTRADER wrote: Thu Oct 09, 2025 8:00 am
I have a rough idea of what you want. But I've already forgotten a lot. And I need to make several buttons there.

The simple version.
1. Start the indicator.
2. Draw a line.
3. Select a line in the indicator settings (lsg_red = no,lsg,red).

Reuse.
1. Open the indicator settings.
2. Click OK.

Re: MT4 Indicator requests and ideas

Posted: Thu Oct 09, 2025 8:16 pm
by 太虚一毫
mrtools wrote: Fri Sep 26, 2025 8:10 am 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.
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?

Re: MT4 Indicator requests and ideas

Posted: Thu Oct 09, 2025 9:12 pm
by TEAMTRADER
andrei-1 wrote: Thu Oct 09, 2025 10:00 am I have a rough idea of what you want. But I've already forgotten a lot. And I need to make several buttons there.

The simple version.
1. Start the indicator.
2. Draw a line.
3. Select a line in the indicator settings (lsg_red = no,lsg,red).

Reuse.
1. Open the indicator settings.
2. Click OK.
TrendLine_Alert_(stoch)_sp.mq4
The trendline I draw on the indi does not automatically 'find' the top and the 'next top'.
Your indi works perfectly as an alert as far as I have tested but it is the actual manual necessity of entering the exact values of the start and mid (the fulcrum) points I was trying to avoid. See the illustratration as to what I was doing.
The trendlines on the chart automatically find the highs and lows when the trendline is drawn near to the price - it is that same function I was looking for.
Your indi is great and gives alerts when the trendline is accurately drawn under and over the chart indicator.
I'm not sure what the 'lsg' or 'red' mean but I will continue to test till I get it.
Many thanks Andrei.
TEAMTRADER

Re: MT4 Indicator requests and ideas

Posted: Thu Oct 09, 2025 10:55 pm
by andrei-1
TEAMTRADER wrote: Thu Oct 09, 2025 9:12 pm
Stochastic lines (LightSeaGreen, Red).
Your task is more difficult than my fantasy.
I forgot how to draw lines in the right window.
Finding the peaks is an endless topic, like divergence.
Then you will need buttons for each line to turn off the alerts.
Then there is a time limit (night) with a button.
Then you'll want the lines to move automatically.

Re: MT4 Indicator requests and ideas

Posted: Thu Oct 09, 2025 11:33 pm
by mrtools
太虚一毫 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?
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.

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.

Re: MT4 Indicator requests and ideas

Posted: Fri Oct 10, 2025 12:14 am
by 太虚一毫
mrtools wrote: Thu Oct 09, 2025 11:33 pm 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.

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.
Thank you for your guidance, teacher. Your merits are boundless! :thumbup:

Re: MT4 Indicator requests and ideas

Posted: Fri Oct 10, 2025 1:45 am
by TEAMTRADER
andrei-1 wrote: Thu Oct 09, 2025 10:55 pm Stochastic lines (LightSeaGreen, Red).
Your task is more difficult than my fantasy.
I forgot how to draw lines in the right window.
Finding the peaks is an endless topic, like divergence.
Then you will need buttons for each line to turn off the alerts.
Then there is a time limit (night) with a button.
Then you'll want the lines to move automatically.
I am testing this on the daily chart as there is much more time to get the stochs values right.
JUST as I had prepared the DAILY chart, an alert popped up to say "Trendline 38965" broken - as you can see the trendline trap was triggered correctly by your alert on the daily chart (1st illustration).
I then went to the 1m chart and did a quick scalp down for 43 pts.
2nd chart was preparation on the 1m chart, drawing traps under and over the stochs indi (5-2-4 setting) - waiting. I have no time to draw exact value traps (trendlines) but it is good enough.
3rd chart shows the manually drawn support being broken and entered short.
4th and final chart shows the exit - it was +43 scalp sell trade but more importantly it was a safe and controlled trade.
Thank you, the manually drawing the S&R traps works, even on the 1m chart.
TEAMTRADER

Re: MT4 Indicator requests and ideas

Posted: Fri Oct 10, 2025 6:23 am
by andrei-1
TEAMTRADER wrote: Fri Oct 10, 2025 1:45 am
The same logic applies here.
But with three lines.
If there is only one line on the chart, it does not need a unique name.
Each line can signal 1 time. After that, the indicator needs to be restarted (OK).
Now it needs a reset button.
The code seems simple to me. I haven't tested it.

Re: MT4 Indicator requests and ideas

Posted: Fri Oct 10, 2025 10:18 pm
by KAYJIRAH
Hi
Please can someone post an indicator that can automatically change timeframes. Example it will automatically change from 1m to 5m and change back to 1m. (1m>5m>1m )
Thanks