AutoRayTrendline — Auto-Extending Trendline Tool for MT5
What it does
AutoRayTrendline is a lightweight indicator that automatically extends any trendline you draw by hand, so it keeps projecting into the future without you having to enable the "Ray" option manually every time.
You still draw the line yourself — placing the anchor points exactly on the candle wicks you want — but the moment you finish drawing, the tool switches on the right-side extension for you.
How to use it
Attach AutoRayTrendline to any chart and timeframe. Select the standard Trend Line tool from the MT5 toolbar (or right-click the chart → Objects → Trend Line). Click on the first swing point (the starting high or low), then click on the second point — the one you want the line to pass through exactly. As soon as you release the second click, the tool automatically enables the right-side extension. The line now projects forward on its own — no manual "Ray" toggle needed. To fine-tune the line later, click on it to select it, then drag either endpoint. The extension updates in real time as you move the points. Settings
| Input | Description |
| InpApplyToExistingLines | If true, any trendlines already on the chart get the auto-extension applied as soon as the indicator is loaded. |
| InpRayRight | Enables the automatic right-side extension (on by default). |
| InpRayLeft | Enables extension to the left as well, if you also want the line projected backward. |
This tool does not automatically draw or detect trendlines — you place the points yourself, giving you full control over exactly where the line touches. It works on any symbol and timeframe. No trading logic is involved whatsoever; it only affects how manually drawn trendlines are displayed.When the rating is low, I'll delete it as usual.