• Overview
  • Reviews (2)
  • Comments (66)
  • What's new

Active Lines

Active Lines - a powerful professional tool for operations with lines on charts. Active Lines provides a wide range of actions for events when the price crosses lines. For example: notify, open/modify/close a position, place/remove pending orders. With Active Lines you can assign several tasks to one line, for each of which you can set individual trigger conditions, as well as conditions for re-activations and the number of possible activations.

Active Lines helps you easily organize various trading strategies connected with trendlines, support and resistance lines. For example, for trading inside a channel, trading in a triangle, grid of orders, etc.

Attaching a task to a line is easy - press the left mouse button on the line and hold it until a window appears, where you can set/modify/check tasks. Line colors and names do not matter for Active Lines.


  • The intuitive interface of the program. Two separate windows:
    • The list of all lines with tasks;
    • All tasks for a separate line. Windows can be moved and hidden.
  • Can work with 6 types of lines:
    • Horizontal line;
    • Trendline;
    • Fibonacci lines;
    • Equidistant Channel;
    • Standard Deviation channel;
    • Regression channel.
  • 2 types of events: break through and rollback to the line.
  • 13 main actions for the task:
    • Alert - a sound alert, a message on the screen, an email, push-notification, switch to the chart on top of all other charts;
    • Buy, Sell - sending an appropriate market order with specified Stop Loss and Take Profit if necessary;
    • Close - closing a position, partial closing, part to close can be specified as a percentage;
    • Modify - modifying Stop Loss and/or Take Profit of an open position;
    • Buy Stop, Buy Limit, Buy Stop Limit, Sell Stop, Sell Limit, Sell Stop Limit - placing pending orders, a separate identifier can be set to each order to be used when deleting orders;
    • Delete Orders - deleting pending orders;
    • Stop Tasks - canceling tasks on a specific line. This action allows to cancel tasks of a line if another line is crossed.
  • Up to 15 tasks for one line. Tasks are executed sequentially, from left to right, as they are located in the tasks window. Tasks can be moved dragged relative to each other to set them in the right order.
  • 2 trade operation execution modes: synchronous and asynchronous. In synchronous mode, the first task is to open a position, the next task is to set Take Profit and Stop Loss. In asynchronous mode, you can almost simultaneously place up to 15 pending orders.
  • Task re-activation.
  • A line can be deleted after all tasks are completed. Available only for horizontal and trend lines.
  • Most of parameters in tasks are set by simple drag-n-drop of additional lines which appear when you edit a task.
  • Each task has its individual log.
  • Line can be set as segments to limit the activity of tasks in time.
  • The number of lines with tasks is not limited.
  • Lines with active tasks are marked with an animated locator icon.
  • "Highlighting" of lines.
  • You can save and upload sets of tasks as templates. Templates are saved in files with the ".tsk" extension. The templates can be saved in both the local terminal folder and in the shared folder available to all the terminals on the computer.
  • Protection against accidental events - disabling tasks if line is moved close to the price.
  • You can limit the volume of an opened position and the number of placed orders in one direction.
  • Support of software restart: tasks are not lost during program/terminal restart.
  • Interactive help on task parameters.
Note: Active Lines does not work in the terminal tester. To see how the program works, please use the free version Active Lines DEMO.

Input parameters

  • Language - language of messages and tooltips.
  • Max Position - maximum position volume the program should open. If 0, the parameter is not managed.
  • Max Orders - maximum amount of orders the program can place. If 0, the parameter is not managed.
  • Deviation for Market Order(in point) - allowable price deviation when placing a market order, in points.
  • Asynchronous mode for trade operations - trade operation execution mode: true - asynchronous, false - synchronous.
  • Print log in Experts tab - message display mode: true - messages are displayed in the EA and Journal tab of the task, else - messages are displayed only in the Journal tab of the task.
  • Color of Price Line - pending order line color.
  • Color of PriceLimit Line - line color for Buy Stop Limit and Sell Stop Limit pending orders.
  • Color of SL Line - stop loss line color.
  • Color of TP Line - take profit line color.
  • Fill Policy for market Order - fill policy of market orders:
    • Auto - automatic selection.
    • FOK(Fill Or Kill) - "Fill or Kill" policy.
    • IOC(Immediate Or Cancel) - "Immediate Or Cancel" policy.
    • Return - "Return" policy.
  • Fill Policy for pending Order - fill policy of pending orders:
    • Auto - automatic selection.
    • FOK(Fill Or Kill) - "Fill or Kill" policy.
    • IOC(Immediate Or Cancel) - "Immediate Or Cancel" policy.
    • Return - "Return" policy.
Mayank Jain
Mayank Jain 2020.04.03 04:25 

Great utility by Yury. Helps so much in planning different trades, which are not possible remotely in Metatrader (for example activating buy stops above price, when price crosses below a certain threshold).

Ravil Ablikeev
Ravil Ablikeev 2019.10.06 15:16 

Очень полезная утилита для работы с ордерами и позициями.

Version 2.8 2020.04.10
The settings of price levels have been changed, now the parameters of price levels are specified in tick size (minimum price step).
Version 2.7 2020.04.07
- The program interface now has variable size, which depends on the font size.
- Added task "Reverse".
- Added task "Start Tasks", which activates tasks on the appropriate line.
- Added display of the list of active tasks next to locator icon. The display mode is set by parameter "List of Active tasks": constant display or popup text when pointing cursor to the locator icon.
- Fixed bug saving SL/TP.
Version 2.6 2019.02.22
Fixed placing a pending order for conditions of exchange execution and expiration "GTS".
Version 2.4 2018.11.10
Active Lines compiled under the new version of the terminal(build 1940).
Version 2.3 2018.04.26
Added the ability to move the locator on the line using the mouse.
- setting the magic number for BUY and SELL tasks;
- display of tooltip.
Version 2.2 2018.03.19
Added the "Prefix" text box to the "Alert" parameters, which is added at the beginning of the notifications. If the field is empty, it is automatically filled by the symbol and timeframe names.
Version 2.1 2017.12.01
Added a tooltip notifying of the inability to attach tasks to certain lines.
Version 2.0 2017.08.21
Added the hedging position accounting system.
Version 1.3 2015.10.28
Fixed skipping event activations for some lines when restarting the program.
Version 1.2 2015.10.02
- Для события "Откат к линии" добавлены два режима работы таймера: ожидание события в течении установленного интервала/времени или после установленного интервала/времени.
- Для задания "ALERT" добавлена возможность сохранять скриншот. Скриншот сохраняется в папку "...\MQL5\Files\Screenshots". Название файла имеет следующий вид: ИмяИинструмента_Таймфрэйм_ИмяЛинии_Время(часы-минуты).
- Для задания "ALERT" добавлена возможность многократного проигрывания звукового сигнала.
- Для заданий выставляющих торговые ордера добавлена возможность автоматического расчета объема ордера.
- Исправлена ошибка в формировании торгового запроса в режиме "исполнение по рынку".