Home / Coding / Expert Advisors / Line Trader

Line Trader

A chart-line execution assistant: draw a line, choose its action, and the EA acts when price reaches it.

DRF_Line_Trader_EA · version 2.01 · Account tool · MetaTrader 5

€15   Buy Line Trader →

Or get every Expert Advisor, for life, for €150: see the bundle.

Risk. Trading carries a high level of risk and you can lose more than you expected. No result is promised. Read the Risk Disclosure.

Test it on a demo account first. When everything works as you expect, use it on a real account.

It works on any symbol: point-based inputs scale to the symbol you attach it to.

Who it suits

Discretionary traders who place levels by hand and want execution handled for them.

What it does

A tool for discretionary traders rather than a strategy. Draw a line on the chart, pick whether it should open, close or just alert, and the EA watches price and carries it out. It is rewritten to the DRF EA standard: licence gate, news, spread and session filters, any-symbol.

How it works

  1. Lines are created from the on-chart panel, with a default lot size for new lines.
  2. Each line can open a trade, close a position or alert when price reaches or crosses it.
  3. A news filter blocks line actions around high-impact releases; a spread cap and an optional session filter apply too.
  4. 'Allow trade orders' can be switched off so it only alerts.

What is included

What is not included

What you need

How to try it

  1. Attach it to a demo chart first, on the same account as your other EAs.
  2. Enter your DRF Key and, for the loss or gain overlays, choose whether it tracks one magic number or every position on the symbol.
  3. Trigger the alert path once on purpose (for example by setting a very small limit on demo) to confirm notifications reach you.
  4. Then set the real limits and attach it on the live account.

Results

No results are published for this Expert Advisor, and none are implied. Test it on a demo account first. Past results never promise future ones.

Buy once, keep it for life

€15   Buy Line Trader →

Manual: every setting in plain language

Enter your DRF Key in the key input. The group "Any-asset scaling" controls how point inputs follow the symbol.

Donaldson R F Licence

InpLicenceKey (default: (empty))
Licence key

Trading Safety

InpAllowTrade (default: true)
Allow trade orders
InpMaxSpreadPoints (default: 30)
Max spread allowed (points), 0 = no limit
InpMagic (default: 4885001)
Magic number for EA trades

News Filter

InpNewsFilterEnabled (default: true)
Enable news filter
InpNewsMinutesBefore (default: 15)
Minutes to block before a news event
InpNewsMinutesAfter (default: 15)
Minutes to block after a news event
InpNewsMinImportance (default: CALENDAR_IMPORTANCE_HIGH)
Minimum importance to block on

Session Filter

InpSessionFilterEnabled (default: false)
Enable session filter
InpSessionStart (default: 07:00)
Session start (provider time, HH:MM)
InpSessionEnd (default: 21:00)
Session end (provider time, HH:MM)

Default Line Setup

InpDefaultLot (default: 0.01)
Default lot size for new lines

Panel Position

InpPanelX (default: 20)
Panel X position
InpPanelY (default: 50)
Panel Y position
InpSavePanelPos (default: true)
Save dragged panel position

Diagnostics

InpDebug (default: false)
Print debug messages to the Journal

Any-asset scaling

InpAutoScalePoints (default: true)
Scale point-based inputs to this symbol's volatility (default values are tuned for a ~3000-point daily range) Leave on unless you know the symbol is much calmer or wilder than the usual daily range.

Related Expert Advisors

Fibonacci Retracement

Detects the latest swing, draws a Fibonacci retracement and enters on a pull-back or touch of a chosen level.

Open →

Market Assistant

Expert Advisor for MetaTrader 5 that works on any instrument.

Open →

Risk Management

An overlay that closes positions when your daily or session loss limit is reached.

Open →

Frequently Asked Questions

Does it decide when to trade?
No. You draw the lines; it acts on them.
Can I use it for alerts only?
Yes, switch off 'Allow trade orders'.
Is the panel position remembered?
Yes, if 'Save dragged panel position' is on.
Do I need a DRF Key to run it?
Yes. The file is free to download, but the EA checks a DRF Key against the licence server when it starts and then every hour. Plans and prices are on the DRF Key page.
Which provider and account should I use?
Any MetaTrader 5 account that offers the symbol. Test on a demo account first; the source does not tie the EA to one provider.
Which symbols does it work on?
Any symbol your provider offers. Inputs that are measured in points scale automatically to the symbol's usual daily range, so the same preset behaves sensibly on a forex pair, an index or Bitcoin. Always test on a demo account first.
Do I need a key to run it?
Yes. After you buy, you receive a DRF Key. It works for life and on up to 5 internet addresses at the same time.
Is there a subscription?
No. You pay once and keep it for life, with free updates.
Does it promise a result?
No. Read the Risk Disclosure. Test on a demo account first; when everything works as you expect, use it on a real account.

Get Expert Advisor and coding news

New Expert Advisors, updates, price changes and videos, by e-mail. A short e-mail only when something is really new. One click to unsubscribe.

You get one e-mail to confirm first. By subscribing you agree that I use your address to send this newsletter. See the Privacy Policy.

Protected by Google reCAPTCHA. The Google Privacy Policy and Terms of Service apply.

Running into a technical issue or something that doesn't work right on this page? Please let us know straight away via our Contact page. That is how we find out what is broken and get it fixed.