MetaTrader 5 will alert you when a price is touched. It will not alert you when a trendline is broken — the line you drew is a drawing object, not something the alerts tab knows about. That gap is why traders end up staring at charts they have already analysed.
What MT5's built-in alerts actually do
Open the Toolbox, go to the Alerts tab, and you can create an alert on a symbol with a condition like Bid > 1.0850. It is a fixed horizontal price. That is genuinely useful for a static support or resistance level, and if that is all you need, you do not need anything else.
What it cannot do:
- Follow a sloping line. A trendline's price changes every bar. A fixed alert does not move with it.
- Wait for a bar to close. It fires the instant the price is touched, wick included.
- Know direction. It fires on a level being reached, not on price having crossed it from one side to the other.
- Survive the terminal being closed. No terminal running, no alert.
Your three real options
1. Convert the trendline to a horizontal level, manually
Read the trendline's price at the bar you care about, set a fixed price alert there, and redo it tomorrow. It works. It is also a chore you will stop doing within a week, and it is wrong by the slope times the number of bars every time you forget.
2. Write or buy an Expert Advisor
An EA can read drawing objects from the chart, compute the trendline's price at the current bar, and alert. This is the correct technical answer and it has three practical costs: you need MQL5 or a vendor you trust, the terminal must stay running on a machine that stays on — in practice a VPS — and the EA's state lives in memory, so a restart can re-fire a rule that already fired.
3. Let a hosted rule engine watch it
This is what chartTrigger does. You draw the line on the chart, attach conditions to it, and the line becomes a rule evaluated continuously on hosted infrastructure. Nothing runs on your computer, so the alert arrives whether your laptop is open or in a bag.
- It follows the line's price as the line slopes.
- It fires on a crossing, not on price merely being on one side.
- It can wait for a bar to close before it counts.
- It has a tolerance band, so a one-tick graze is not a break.
- It has a cooldown, so one messy candle is not eleven alerts.
Why a break has to be a crossing
This is the single most common mistake in home-made alert logic. "Price is below the trendline" is not a break. If you attach that condition to a line that price has been under for three days, it is true the instant you arm it, and it fires immediately on nothing at all.
A break is a transition: price was on one side, and then moved beyond the other side by more than your tolerance. In chartTrigger's evaluator a retest is treated exactly that way — a close on one side followed by movement beyond the other by the tolerance band — which is why the first touch of an untested level does not register as a retest.
The tolerance band matters as much as the direction. Without one, a spread widening at the session roll is a break, a single bad tick is a break, and you learn to ignore your own alerts. With a band expressed in points or as a percentage, you decide how far beyond the line counts.
Wick or close: pick deliberately
A trendline break that fires on the live price will catch every fakeout. A break that waits for the bar to close will miss some genuine fast moves. Neither is correct in the abstract; they suit different styles, and the mistake is not choosing.
chartTrigger makes it an explicit setting. With confirm on close on, the trigger reads closed bars only and drops the bar still forming, so a wick through the line cannot fire it. Off, it reads the live tick. There is a longer piece on that trade-off.
Setting one up, start to finish
- Open the chart for the symbol and timeframe you analyse on. No broker account is needed to do this — with none connected, the chart runs on a live public feed.
- Draw the trendline across the swing points you want it anchored to.
- Attach a trigger: a break of that line, with a direction — upward or downward through it.
- Set the tolerance band so a graze does not count. Start wider than feels right; you can always tighten.
- Decide on confirm-on-close. For anything above M15, closing confirmation usually saves more than it costs.
- Choose what happens: an alert to Telegram or email, a webhook to something else you run, a paper fill, or — with a broker account connected — a real order.
- Set a cooldown and a maximum fire count so a chop session cannot spam you.
- Arm it, and close the tab.
What the alert looks like when it arrives
Text alone leaves you squinting at a chart trying to work out which cross it meant. chartTrigger renders a chart image from the candles the engine actually evaluated, draws your level on it, and marks the firing bar — then sends it as a Telegram photo with the text as caption, or inline in the email. It also reports the engine's own share of the delay, measured from the tick's timestamp to the recorded fire, so you can see the alert was prompt rather than assume it.
You can do all of this with no broker account
Alerts, webhooks and paper fills all run on chartTrigger's free public market feed — crypto from Binance, and forex, metals, energy, indices and shares from Yahoo. The one thing that feed deliberately cannot do is place an order: a rule with order or close actions is refused on it. So a trendline break alert costs you nothing to set up and requires no broker relationship at all.
Common questions
Does MetaTrader 5 have a built-in trendline alert?
No. MT5's Alerts tab supports fixed price conditions on a symbol. A sloping trendline is a chart drawing object, and the alerts system does not read it.
Do I need to keep MT5 open for the alert to work?
Not with a hosted rule. chartTrigger evaluates on its own infrastructure, so the alert fires with your machine off. A local EA, by contrast, needs the terminal running.
How do I stop a trendline alert firing repeatedly?
Use a crossing condition rather than a "price is below the line" condition, add a tolerance band, set a cooldown, and cap the maximum number of fires per arming.
Draw the line, arm the alert
Alerts run on a free live market feed with no broker account connected, and arrive with a picture of the bar that fired.
Create a free accountRead next
Risk note. This article is educational material about how chartTrigger works. It is not investment advice, not a recommendation to trade any instrument, and nothing here forecasts results. Trading leveraged products carries a high risk of loss. Any historical simulation referred to is exactly that — a run over past bars under stated spread and slippage assumptions, not an indication of future performance.