TrueTL Trendline Indicator for MT4 and MT5
TrueTL indicator draws trendlines automatically on the main price chart. It detects normal, long, three-touch, and narrow trendlines from historical price structure, supports multi-timeframe drawing, and provides breakout or approach signals through arrows, vertical lines, alerts, and EA-ready buffers.
The indicator is built for traders who want price-chart trendline structure without drawing every line manually. You can control how trendlines are detected, which trendline types remain visible, whether candle bodies or full highs/lows are used, and how alerts should react to breakouts or price approaches.
Key features:
- Works in both MetaTrader 4 and MetaTrader 5.
- Draws automatic trendlines directly on the main chart.
- Supports normal, long, three-touch, and narrow trendline types.
- Detects trendline breakout, approach, counter-direction breakout, and same-direction breakout events.
- Multi-timeframe drawing with optional precise MTF calculation on the selected redraw timeframe.
- Drawing modes for candle highs/lows, candle bodies, and line-chart style close-price analysis.
- Triangle mode can keep the chart cleaner by drawing only two trendlines.
- 3 configurable signal slots. Each slot has its own buffer, arrow colors, and alert timing, with shared arrow and vertical line display controls.
- Alerts can be sent by popup, push notification, email, sound, Telegram, CSV file, and chart pictogram.
- Force refresh and smart HTTP/cache modes help keep visual backtesting and repeated testing faster (more info).
- All trendline styles, signal arrows, alert channels, and the show/hide button are controlled from the Inputs tab.
EA and iCustom usage:
The indicator is ready for Expert Advisor integration through iCustom(). Buffers 0-2 return the three user-configurable signal slots, so an EA can read only the events you select in the inputs.
For example, Signal 1 can be set to all trendline breakouts, Signal 2 to trendline approaches, and Signal 3 to counter-direction breakouts. This keeps manual trading, alert trading, and automated trading aligned with the same indicator settings.
- Buffer 0:
Signal 1buffer. Returns1or-1based on the selected Signal 1 setting. - Buffer 1:
Signal 2buffer. Returns1or-1based on the selected Signal 2 setting. - Buffer 2:
Signal 3buffer. Returns1or-1based on the selected Signal 3 setting.
Indicator Inputs
- Version: shows the installed indicator version. If support asks for your version, this is the value to check.
- Username (without spaces, case sensitive): enter the username you received after purchase. After the first successful activation, you can usually leave it unchanged in other instances (about our ex4 protection).
- Auto refresh: controls when server-side trendline objects are refreshed.
Offdisables automatic refresh.Onrefreshes when needed after closed bars.Force refreshalso refreshes while you scroll the chart. This is useful during visual backtesting (Example Video). - Smart HTTP request: controls how often the indicator sends calculation requests.
Offrequests calculation on every bar. Use this if you want the most direct mode.Estimateskips requests when the indicator is very likely not to need a new object. This is faster.Cachesaves and reuses previous results for the same symbol, timeframe, and settings. This is usually the fastest for repeated tests.Cache resetrebuilds the cache for the current symbol, period, and settings. - Redraw timeframe: selects the timeframe used for trendline calculation and drawing. It can use the current chart timeframe, fixed timeframes, or relative higher timeframe presets.
- Precise MTF drawing: calculates and draws trendlines on the selected redraw timeframe, so multi-timeframe trendlines are aligned more precisely to their source structure.
- Normal trendline period: controls the historical period used for normal trendline detection. A lower value focuses on recent structure. A higher value includes more history.
Trendline Settings
- Trendline showing: chooses which trendlines remain visible:
Show all trendlinesShow all trendlines without labelsShow only upward trendlinesShow only upward trendlines without labelsShow only downward trendlinesShow only downward trendlines without labels - Trendline drawing mode: selects which price source is used for trendline detection:
Normal drawinguses candle highs and lows.Candle body drawinguses candle bodies.Line chart drawinguses close-price style analysis. - Three touches trendline recognition: controls how sensitive the indicator is when detecting three-touch trendlines. Available modes range from
OffthroughLowest sensitivitytoHighest sensitivity, including precise variants. - Lazy redraw: enables stronger pullback analysis before trendlines are redrawn.
- Triangle mode: draws only two trendlines. Use it when you want a simpler, cleaner chart.
- Mark highest and lowest trendlines: highlights the highest and lowest active trendlines.
- Cut trendline endings at breakout: shortens trendlines at the breakout point, so the chart shows where the break happened more clearly.
- Draw trendlines in the background: places trendline objects behind candles and other chart drawings.
- Show trendline tooltip on hover: controls tooltip labels for trendlines:
OffOnOn for all trendlines - Allow multiple instances: allows several TrueTL indicators on the same chart by giving each instance its own settings identity.
- User notification corner: sets where chart-side status messages are shown.
Signal Settings
- Signal for Normal trendlines / Long trendlines / Three Touches trendlines / Narrow trendlines: selects which trendline types are allowed to trigger signals when a selected signal mode uses selected trendline types.
- Approach distance (in points): sets how close price must come to a trendline before an approach signal can trigger.
- Signal 1 / Signal 2 / Signal 3: each signal slot can watch a different event. Each slot has its own iCustom buffer, arrow colors, and alert timing. Arrow display and vertical line output are controlled by the shared signal display settings. Available events are:
NoneTL Breakout - all trendlinesTL Breakout - selected TL typesTL Approach - all trendlinesTL Approach - selected TL typesTL Breakout (counter-direction) - all TLTL Breakout (counter-direction) - selected typesTL Breakout (same-direction) - all TLTL Breakout (same-direction) - selected types - Vertical line on/off and size/style: draws an optional vertical line on signal bars. Use it when you want signals to remain easy to see during chart review.
- Arrow on/off and size: draws signal arrows on the main chart. Arrow size can be set to
Size 1-8, or turned off. - Arrow distance from candle: controls how far arrows are placed from candles. ATR-based distance adapts to volatility. Point-based distance uses fixed point values.
- Up arrow code / Down arrow code: set the Wingdings symbols for bullish/up and bearish/down signal arrows. Defaults are
233for up and234for down. - Signal 1-3 Up color / Signal 1-3 Down color: assign separate bullish and bearish colors to each signal slot. This is useful when several signals are active at the same time.
Alert Settings
- Alert when trendlines are redrawn: sends an alert when the indicator redraws trendline objects. This works independently from the three signal slots.
- Alert for Signal 1 / Alert for Signal 2 / Alert for Signal 3: sets alert timing separately for each signal slot:
OffAfter candle closedBefore candle is closingBoth - Trendline objects to alert for: selects which chart objects are monitored by trendline breakout and approach alerts:
TrueTL objects onlyAll trendlines and horizontal linesSelected color only - Trendline color filter: defines the monitored object color when trendline alerts are set to selected colors.
- Alert interval limit (minutes, 0 = no limit): prevents repeated alerts from firing too often.
0disables the interval limit. - Shortcut to send test message via enabled alert method: lets you send a test alert from the chart with a keyboard shortcut. Available keys are
0-9andA-Z. - Alert start time / Alert end time: limits alerts to a daily time window.
00:00to00:00means alerts are allowed all day. - Only one "Touch" and "Before close" alert per TF and direction: limits repeated touch and before-close alerts for the same timeframe and direction.
- Message identifier: adds a short label to alert messages. This is useful when several charts, symbols, or indicator instances are running.
- Alert via email / Alert via push notification / Alert via popup window / Alert with sound / Sound file: enable the MetaTrader alert channels and select the sound file for sound alerts.
- Telegram Notifications / Token / Chat ID: enable Telegram delivery and define the bot token and destination chat ID.
- Pictogram alert: shows a chart-corner symbol that changes with the latest alert direction.
- Pictogram corner / Pictogram X / Pictogram Y / Pictogram size / Pictogram symbol: control the position, size, and Wingdings symbol of the pictogram alert.
- Pictogram neutral color / Pictogram UP color / Pictogram DOWN color: set the neutral, bullish, and bearish pictogram colors.
- Write alert to CSV file: writes alerts to a CSV file in the platform files folder for later review or external automation.
Color and Style Settings
- Normal trendline style/width and color: set the style and color for normal trendlines.
Offhides this trendline type. - Long trendline style/width and color: set the style and color for long trendlines.
Offhides this trendline type. - Three Touches trendline style/width and color: set the style and color for three-touch trendlines.
Offhides this trendline type. - Narrow trendline style/width and color: set the style and color for narrow trendlines.
Offhides this trendline type. - Available line styles: include
Off, solid widths 1-5, dash, dot, dash-dot, and dash-dot-dot.
Show/Hide Button Settings
- Enable show/hide button: enables the chart button used to show or hide the indicator without removing it from the chart (more info).
- Shortcut for button / Apply for all TrueTL Indicators on the chart: controls keyboard access and whether the button affects only this instance or all TrueTL indicators on the chart. Available shortcut values are
Off,0-9, andA-Z. - Adjust the corner of button / Adjust the coordinate X of button / Adjust the coordinate Y of button: sets the button position on the chart.
- Adjust the text of button / Adjust the text's font of button / Adjust the text's size of button / Adjust the text's color of button: controls the button caption.
- Adjust the background color of button / Adjust the background color of button when hidden / Adjust the border color of button: controls the button colors in visible and hidden states.
- Adjust the width of button / Adjust the height of button / Button DPI scale: controls the button size on different displays. DPI scale can be automatic or fixed from
50%to200%.



