Model: 1.3
Platform: MetaTrader 5
Product sort: Skilled Advisor
1. Overview
Trendline PRO is a chart execution assistant for discretionary MT5 merchants.
You place a line on the chart, select what the road ought to do, then the EA watches worth. When worth reaches or crosses the road, Trendline PRO can open a commerce, shut a commerce, or ship an alert.

Major features:
- Purchase and Promote trendline entries
- Contact-cross and closed-candle breakout triggers
- OCO entry pairs
- TP and SL zones drawn immediately on the chart
- Auto Breakeven per entry line
- Trailing Cease per entry line
- Full or partial shut traces
- Alert traces
- Line persistence after chart reloads and template saves
- Hedging and netting account help
Essential: Trendline PRO is an execution device. It doesn’t predict market path. All buying and selling choices, line placement, lot dimension, threat, and account publicity stay the dealer’s accountability.
2. Set up
- Open MetaTrader 5.
- Set up or copy FXTT-Trendline-PRO.ex5 into the terminal MQL5/Specialists folder.
- Restart MT5 or refresh the Navigator.
- Drag the EA onto a chart.
- Allow Algo Buying and selling in MT5.
- Verify the EA inputs earlier than dwell use.
If Enable commerce orders is disabled, the EA can nonetheless draw traces and ship alerts, however it is not going to open or shut trades.
3. EA Inputs

Buying and selling Security
- Enable commerce orders
Default: true
Allows or disables all order open/shut actions. - Max unfold allowed (factors)
Default: 0
Blocks new entries when unfold is above this worth. 0 means no unfold restrict. - Magic quantity for EA trades
Default: 4885001
Used to establish EA-managed positions. Use completely different magic numbers when working a number of cases.
Default Line Setup
- Default lot dimension for brand new traces
Default: 0.01
Beginning quantity for brand new entry and shut traces. - Worth button step (factors)
Default: 1
Worth change utilized by the small up/down worth buttons on a specific line.
Chart Interplay
- Drag deal with dimension (pixels)
Default: 6
Measurement of line and zone drag handles. - Click on sensitivity (pixels)
Default: 10
Mouse hit space for choosing traces and handles. Enhance this on high-DPI or contact gadgets. - Redraw interval, 33 ms = about 30 FPS
Default: 33
Controls chart redraw pace whereas dragging.
Panel Place
- Panel X place
Default: 20
Horizontal panel place in pixels from the left chart edge. - Panel Y place
Default: 50
Vertical panel place in pixels from the highest chart edge. - DPI scale
Default: 0.0
0.0 makes use of regular scaling. Use values equivalent to 1.25, 1.5, or 2.0 if panel or handles are too small. - Save dragged panel place
Default: true
Saves the panel place after you progress it.
Diagnostics
- Print debug messages to Journal
Default: false
Prints detailed inside messages for troubleshooting.
4. Floating Panel

The floating panel creates new traces. Drag the panel title space to maneuver it.
Panel buttons:
- Purchase Line
Creates a Purchase entry line. - Purchase BO
Creates a Purchase breakout line. It triggers after a candle opens beneath the road and closes above it. - Promote Line
Creates a Promote entry line. - Promote BO
Creates a Promote breakout line. It triggers after a candle opens above the road and closes beneath it. - Shut All
Creates a detailed line. It closes matching open positions when crossed. - Set Alert
Creates an alert line. It sends an MT5 alert when crossed. - OCO
Creates a linked Purchase/Promote entry pair. When one line triggers, the opposite line is disabled. - Clear All
Removes all traces from the chart.
New traces seem close to the middle of the seen chart. Transfer them after creation.
5. Line Varieties
Purchase and Promote Entry Strains

Entry traces open market orders when the execution worth reaches the road:
- Purchase entries use Ask.
- Promote entries use Bid.
Contact-cross entry traces can set off when worth crosses the road in both path allowed by the road state.
Breakout Strains

Breakout traces await a accomplished candle physique.
- Purchase breakout: candle opens beneath the road and closes above it.
- Promote breakout: candle opens above the road and closes beneath it.
Breakout traces don’t set off from older candles that crossed earlier than the road was created or edited.
Shut Strains

Shut traces shut matching positions on the present image.
- Quantity All: shut all matching positions.
- Particular quantity: shut as much as that lot quantity.
On hedging accounts, partial shut makes an attempt to revive earlier SL/TP after the partial shut. On netting accounts, SL/TP restore is skipped as a result of dealer counter-order habits is broker-dependent.
Alert Strains

Alert traces ship an MT5 chart alert and print the alert message to the Journal. They don’t open or shut orders.
OCO Strains

The OCO button creates two linked traces:
- Purchase entry beneath present mid-price
- Promote entry above present mid-price
When one OCO entry opens an order, the opposite line is marked disabled and can’t fireplace. In case you delete one line in an unresolved OCO pair, its peer can be deleted.
6. Working With Strains
Choose a Line

Click on a line physique, deal with, or TP/SL zone. The energetic line exhibits handles and motion buttons.
Click on empty chart house to clear choice.
Transfer a Line
Drag the center sq. deal with to maneuver the entire line.
Maintain Shift whereas dragging the center deal with to maneuver the road in time solely.
Transfer an Endpoint

Drag a spherical endpoint deal with to alter time and worth.
Maintain Shift whereas dragging an endpoint to maintain the road horizontal.
Change Facet or Set off

Some chosen line labels/buttons permit biking aspect or set off state immediately on the road. Use them earlier than the road triggers.
Triggered traces are locked from aspect/set off adjustments.
7. TP and SL Zones


Entry traces can have TP and SL zones.
- Click on +TP to allow a Take Revenue zone.
- Click on +SL to allow a Cease Loss zone.
- Click on the zone delete button to take away the zone.
- Drag the outer center sq. deal with to resize a zone.
- Drag an outer endpoint sq. deal with to slope a zone.
- Use the small worth up/down buttons to regulate line, TP, or SL worth by Worth button step (factors).
Zone labels present distance and estimated cash worth. Values are estimates from present image tick worth, quantity, and distance.
Trailing Cease and SL zone are mutually unique within the UI. Enabling Trailing Cease disables the SL zone.
8. Quantity

Every entry or shut line has a quantity badge.
- Click on + to extend quantity.
- Click on – to lower quantity.
- Entry line quantity is normalized to the image minimal, most, and step.
- Shut line quantity could be All or a selected lot quantity.
9. Safety Panel

For an entry line, click on the defend button close to the chosen line to open the safety panel.
The safety panel comprises:
- Auto Breakeven checkbox
- Auto Breakeven set off pips
- Auto Breakeven lock-in pips
- Trailing Cease checkbox
- Trailing Cease distance pips
Auto Breakeven

Auto Breakeven strikes SL after worth reaches the set off distance from the opened place worth.
- Set off pips: revenue distance wanted earlier than safety prompts.
- Lock-in pips: what number of pips past entry the SL ought to transfer.
For Purchase positions, SL strikes above entry by the lock-in worth.
For Promote positions, SL strikes beneath entry by the lock-in worth.
The set off should keep above the lock-in distance. The EA additionally respects unfold, cease degree, and freeze degree constraints.
Trailing Cease

Trailing Cease strikes SL as worth strikes in revenue.
The panel exposes the trailing distance in pips. The EA solely tightens threat; it doesn’t transfer SL farther away from worth.
When Trailing Cease is enabled, the visible SL zone is disabled to keep away from conflicting cease directions.
10. Order Security
Earlier than opening entries, Trendline PRO checks:
- Buying and selling permission from Enable commerce orders
- Present unfold in opposition to Max unfold allowed (factors)
- Image quantity min/max/step
- Accessible margin by means of OrderCalcMargin()
- Dealer cease degree and freeze degree when making use of SL/TP or safety
Orders use the configured magic quantity and an inside line remark.
11. Account Modes
Hedging Accounts
On hedging accounts, every place is unbiased. Trendline PRO matches entry positions by image, aspect, magic quantity, and line remark when doable.
Netting Accounts
On netting accounts, MT5 retains one web place per image. Brokers can overwrite remark or magic after counter-orders. For cover monitoring, Trendline PRO matches by image and aspect.
If an entry could web in opposition to an present opposite-side place, the EA prints a warning within the Journal and continues. This enables intentional scale back/flip workflows whereas making the danger seen.
12. Persistence and Templates
Trendline PRO saves traces routinely after line edits and panel actions.
Persistence makes use of:
- Terminal GlobalVariables for quick reload in the identical terminal.
- Hidden native chart objects for chart templates and Technique Tester visible mode.
On startup, the EA first restores from chart objects. If none are discovered, it restores from GlobalVariables.
13. Technique Tester
Trendline PRO can be utilized in Technique Tester visible mode.
Beneficial workflow:
- Place traces on a dwell chart.
- Save the chart as a template.
- Open Technique Tester.
- Allow visible mode.
- Load the saved template.
- Run the check.
Non-visual optimization runs don’t present regular chart interplay. Interactive setup requires visible mode.
14. Keyboard Shortcuts
- Delete: delete the chosen energetic line.
- T: toggle TP zone on the chosen entry line.
- S: toggle SL zone on the chosen entry line.
15. Frequent Workflows
Breakout With OCO
Click on OCO, transfer the Purchase and Promote traces across the consolidation space, configure quantity and elective TP/safety, then let the primary triggered aspect disable the opposite line.
Danger-Outlined Entry
Create a Purchase or Promote entry line, allow TP and/or SL zones, set quantity, then place the road on the supposed execution degree.
Auto Breakeven Safety
Create an entry line, open the defend panel, allow Auto Breakeven, then set set off and lock-in pips.
Trailing Safety
Create an entry line, open the defend panel, allow Trailing Cease, then set distance pips.
Partial Shut
Create a detailed line, set a selected quantity, and place it on the goal degree. Create one other shut line with All if you wish to shut the remaining place later.
Alert Solely
Set Enable commerce orders to false, then use alert traces. The EA is not going to ship commerce orders whereas this enter is disabled.
16. Troubleshooting
Strains don’t open trades
Verify:
- MT5 Algo Buying and selling is enabled.
- Enable commerce orders is true.
- Unfold is just not above the configured restrict.
- Image permits buying and selling.
- Account has sufficient free margin.
- Journal has no dealer rejection message.
Clicks are laborious to hit
Enhance Click on sensitivity (pixels) and/or DPI scale.
Panel or handles are too small
Set DPI scale to 1.25, 1.5, or 2.0.
Safety didn’t transfer SL
Verify:
- Place nonetheless exists.
- Auto Breakeven or Trailing Cease is enabled.
- Worth reached the set off/distance.
- Dealer cease degree or freeze degree didn’t block SL modification.
- Journal has no modify rejection message.
18. Danger Discover
Buying and selling Foreign exchange, CFDs, futures, and different leveraged merchandise entails threat. Trendline PRO automates execution based mostly on user-defined chart traces. It doesn’t assure revenue and can’t stop losses from slippage, unfold adjustments, dealer rejection, disconnections, improper settings, or market gaps. Check on a demo account earlier than dwell buying and selling.