Skip to content
All library documents

Automated Breakouts from User-Drawn Trendlines

Article MQL5 code base

Summary

This document describes an expert advisor that monitors multiple trendlines drawn by a user on a chart. It detects adjustments to those lines dynamically and uses their position relative to current price to identify a possible breakout direction: price below the lines prompts a watch for an upward break, while price above them prompts a watch for a downward break.

The advisor can issue alerts through popups, sounds, email, or mobile notifications, and it can place trades when that option is enabled. For three- or five-digit currency quotes, it automatically scales target profit, stop loss, and slippage settings. The document provides no backtest, performance evidence, or detail on how a breakout is confirmed, how trades are sized, or how risk is managed. Its description therefore explains a configurable alert and execution tool rather than a validated trading strategy.

Key ideas

  • The advisor monitors multiple user-drawn trendlines and detects their movement or adjustment.
  • Price below the trendlines triggers monitoring for an upward breakout, while price above them triggers monitoring for a downward breakout.
  • The tool supports popup, sound, email, and mobile alerts, as well as optional trade execution.
  • Profit targets, stop losses, and slippage are scaled for three- and five-digit currency quotes.
  • No testing evidence or detailed breakout confirmation and risk rules are provided.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.