Titan FX

Touch and Breakout Alerts for Horizontal Lines and Trendlines (Titan_LineAlert)

Touch and Breakout Alerts for Horizontal Lines and Trendlines (Titan_LineAlert)

Indicator Overview

An alert tool for horizontal lines and trendlines that notifies you when the price reaches the lines you drew

This indicator is an alert tool that notifies you with a popup and sound when the price reaches a horizontal line or trendline you drew on the chart. The standard alerts in MT4 and MT5 are set by entering a price as a number, so they cannot be set on a diagonal trendline. Also, if you move a line you drew while looking at the chart, the alert price does not change with it. Because this indicator watches the lines on the chart themselves, simply drawing a line as usual sets an alert, and moving the line moves the alert position along with it.

For each line, you can choose one of three alert conditions: "Touch", which notifies you when the price touches the line; "Break", which notifies you when the price breaks through the line; and "Close", which notifies you when a candle closes on the other side of the line. The watched lines are listed on the operation panel, so you can check the distance (pips) to each line and its watch status at a glance.

This makes it a useful tool when you are waiting for the price to reach a support or resistance line, when you do not want to miss a trendline breakout, or when you want to know that the price has reached an important level while you are away from the chart.

*Alerts are only given while MT4 or MT5 is running. No alerts are given while your computer is turned off or while MT4 or MT5 is closed.

[Example of watching horizontal lines] Example of watching horizontal lines

[Example of an alert for a horizontal line touch] Example of an alert for a horizontal line touch

How to Use

①Apply this indicator to the chart on which you want to watch lines. An operation panel is displayed at the upper left of the chart.

②Draw a horizontal line or trendline on the chart using the standard MT4 or MT5 tools. The line is automatically added to the list on the panel, and watching starts (the default alert condition is "Touch"). Lines that were already drawn are also listed when the indicator is applied.

③When the price reaches a line, you are notified with a popup and sound, and a mark (a bell symbol) is displayed on the line at the alert position. The line becomes "Alerted" and watching of that line stops.

④To watch the same line again, press the "Done" button at the left end of the panel, or move the line. It returns to the watching state.

Alerts are displayed as follows. If you enter a name in the "Description" field of the line's properties, that name is shown in quotation marks, so you can tell immediately which line was reached.

USDJPY H-line "Resistance" 152.300: touched (now 152.301)

USDJPY Trendline 151.842: closed above H1 (close 151.910)

The watched lines are displayed on the panel as follows.

ItemDescription
Button at the left end"ON" means the line is being watched, "OFF" means watching is stopped, and "Done" means an alert has been given. Pressing it switches between "ON" and "OFF". Pressing "Done" returns it to "ON" and resumes watching.
LineThe name entered in the "Description" field of the line's properties. If the description is empty, it is shown as "H-line 1", "Trendline 2" and so on. Clicking it selects that line on the chart, so you can check which line it is.
PriceThe price of the line at the current position. For a trendline, the price on the line at the position of the current candle is shown.
DistThe distance (pips) from the current price to the line. A plus value means the current price is above the line, and a minus value means it is below.
CondThe alert condition. Each press switches it in the order "Touch" → "Break" → "Close".
StatusIn addition to "Watching", "Off" and "Alerted", "Ended" is shown when the end point of a trendline has passed, and "Not started" when the start point is still ahead.

The buttons at the top of the panel provide the following operations.

  • Alerts ON / OFF: Pauses watching of all lines at once. Press it again to resume.
  • Test: Gives a test alert using the selected notification methods (popup and sound). Use it to check the volume and how alerts appear.
  • "-" "+": Collapses and expands the panel.

About the alert conditions

ConditionWhen you are notified
TouchNotifies you when the price touches the line. You are also notified when the price jumps over the line in a sudden move, or when it reaches the line only for a moment and immediately pulls back (when a candle's wick reaches the line).
BreakNotifies you when a price that was above the line when watching started breaks down through the line (or breaks up through it, if the price was below). To avoid alerts when the price only slightly crosses the line, you are notified when it breaks through by the "Break distance" (2.0 pips by default) or more.
CloseNotifies you when a candle on the current timeframe closes on the other side of the line. You are not notified when only the wick crosses the line, so this is recommended when you want to avoid false breakouts.

*The Bid price (the price displayed on the chart) is used for the checks.

*If you want to be notified before the price reaches the line, or if you feel that alerts are not given even though the price visually reaches the line, set the "Touch distance" to about 0.3 to 0.5. You are then notified when the price comes within that distance of the line.

*No alert is given if a line overlaps the price while you are drawing it or dragging it. When you move a line, watching restarts at the new position (an alerted line also returns to the watching state). Changing only the color or description of a line does not change its watch status.

*Trendlines drawn in MT5 are not extended to the right by the standard settings, but this indicator extends them to the right for watching by default. Even a trendline drawn by connecting two past points can be watched at the current price as it is.

*By default, watching of a line stops after one alert. To receive repeated alerts for the same line, set the number of minutes in "Minutes until watching resumes". Watching resumes automatically when that time has passed after the alert.

About saving the watch status

The ON / OFF setting, alert condition and alerted status of each line are saved with the chart. Watching continues in the same state even after you switch timeframes or restart MT4 or MT5. However, if a Break or Close condition was met while MT4 or MT5 was closed, you are notified right after the restart (this does not apply to Touch).

*If you change the "Name" in a line's properties, it is treated as a different line, so its ON / OFF setting and alert condition return to their initial state.

*Lines with "Disable selection" checked in their properties, and lines drawn by other indicators, are not watched.

*Even if "Sound alert" is OFF, the MT4 or MT5 alert sound plays when a popup is displayed. If you do not want any sound, also turn the popup OFF (the alert is then recorded in the Experts tab).

*When the indicator is removed, the panel and the alert marks are removed automatically. The lines you drew on the chart are not changed or deleted.

*This indicator only works on the Windows version of TitanFX MT5 and MT4.

Indicator Terms of Use

Only those who agree to all the following items may use the indicators distributed on this website (https://research.titanfx.com):

1.The indicators and related descriptions are based on various data believed to be reliable, but their accuracy and completeness are not guaranteed.

2.The data displayed by the indicators do not guarantee your investment results. Also, the displayed content may vary due to market conditions and communication environments.

3.Please make investment decisions using indicators at your own risk. We are not responsible for any disadvantages or damages arising from the use of indicators.

4.Specifications of the indicators are subject to change without notice. Changes will be announced on the indicator description pages, etc.

5.Indicators should only be used by customers who have downloaded them. Transferring or selling the indicators to third parties is prohibited.

Indicator Settings

Settings on the Inputs tab

ParameterDescriptionDefault
Alert condition for new linesSets the alert condition for newly drawn lines: "Touch", "Break" or "Break on close". The condition of each line can also be changed with the condition button on the panel.Touch
Touch distance (pips, alert before reaching the line)Gives a Touch alert when the price comes within this distance of the line. If set to 0, you are notified when the price reaches the line.0.0
Break distance (pips)Gives a Break alert when the price breaks through the line by this distance or more.2.0
Minutes until watching resumes (0 = alert once)Sets the time in minutes from an alert until watching resumes. If set to 0, you are notified only once and watching stops.0
Watch new lines automaticallyIf set to true, newly drawn lines are watched automatically. If set to false, they are added to the list in the "OFF" state, so turn "ON" only the lines you want to watch on the panel.true
Extend non-ray trendlines to the right when watchingIf set to true, trendlines that are not set to extend to the right are also extended to the right for watching. If set to false, a trendline becomes "Ended" once its end point has passed.true
Popup alertIf set to true, alerts are given with a popup.true
Sound alertIf set to true, alerts are given with a sound.true
Sound file (Sounds folder)Sets the file name of the sound used for alerts. You can specify a file in the "Sounds" folder in the MT4 or MT5 folder.alert.wav
LanguageSets the language displayed on the panel and in alerts: "Japanese", "English", "Chinese (Simplified)" or "Chinese (Traditional)".English
Lines shown on the panel (1-30)Sets the number of lines listed on the panel. Lines that do not fit are still watched, and the panel shows "+ N more (all are watched)".10
Mark the alert positionIf set to true, a mark (a bell symbol) is displayed on the line at the time of the alert.true
Marker colorSets the color of the mark displayed at the alert position.Gold
FontSets the font of the text displayed on the panel.Meiryo UI
Font sizeSets the size of the text displayed on the panel.9
Start minimizedIf set to true, the panel is collapsed when the display starts.false
Panel cornerSets the chart corner used as the reference for the panel position.Upper left
Panel X (px)Sets the horizontal distance from the reference corner to the panel.10
Panel Y (px)Sets the vertical distance from the reference corner to the panel.20
Panel background colorSets the background color of the panel.32,36,44
Button color (OFF)Sets the color of the buttons for lines that are OFF, and of the other buttons.58,64,76
Button color (ON)Sets the color of the buttons for watched lines and of the "Alerts ON" button.0,122,94
Alerted colorSets the color of the buttons for alerted lines.150,110,20
Text colorSets the color of the text displayed on the panel.WhiteSmoke
Border colorSets the color of the panel and button borders.84,92,106

Settings on the Colors tab

This indicator does not use this tab.