The trendline I draw on the indi does not automatically 'find' the top and the 'next top'.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
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