DML EA MultiReaction

DML EA MultiReaction

DML EA Multi Reaction is an advanced tool for professional traders, designed for automated trade execution based on key Deep Market Level (DML) levels. The EA's primary function is to precisely capitalize on the interest levels of large market participants, which manifest as strong support and resistance zones, culminating in a sudden "detachment" or "jump" of the monitored DML level.

DML MultiReaction main settings

Initial Setup

This primary section acts as the master switch for the EA's automated trading functions upon initialization.

  • Trading ON on init: This parameter determines whether the Expert Advisor should automatically start placing new trade setups as soon as it is initialized on the chart.
    • Setting it to `false` (default): This is the recommended and safer option for live trading. It acts as a critical safety measure. After an accidental platform restart, for instance, the EA will continue to manage any existing orders but will not open new trade setups. This gives you time to verify your settings before manually enabling new trades via the on-chart button.
    • Setting it to `true`: The EA will begin analyzing the market and opening new positions immediately upon initialization, without requiring manual intervention.

Important Note: When backtesting in the Strategy Tester, the `Trading ON on init` parameter must be set to `true`. Otherwise, the tester will correctly visualize the levels on the chart, but the robot will not open any positions, making it impossible to verify the strategy's performance.

DML MixReaction Global Parameters

Global Parameters

In this section, you define the fundamental settings that ensure the Expert Advisor correctly identifies the instrument and synchronizes its time. Proper configuration here is crucial for stable performance.

  • Symbol Selection Mode: Specifies how the EA identifies the financial instrument to trade on.
    • `Automatic` (recommended): This is the default setting. The EA will auto-detect the symbol from the chart it is running on. This is the best choice for 99% of use cases.
    • `Manual`: This option is for advanced users or when your broker uses non-standard instrument names (e.g., `EURUSD.ecn`, `GBPUSD_x`). It allows you to manually enter the correct instrument name as it appears in the DML databases. This is useful in specific situations, such as running the EA on an instrument with a custom name while wanting it to trade based on a standard instrument (e.g., `EURUSD`).
  • Manual Name For Symbol: This field is active only in `Manual` mode. Enter the exact symbol name as it appears in the DML database. Pay close attention to any suffixes or prefixes (e.g., `EURUSD.m`, `DE40.cash`). An incorrect name will prevent the EA from trading.
  • Broker Server Time (GMT): All data on the DML servers is published in GMT 0 time. This option sets the time offset between the DML server and your broker's server. It is a critically important parameter as it ensures that the DML levels fetched from the server are correctly plotted on your chart's timeline.
  • Magic Number: A unique identifier for this specific instance of the EA. It acts as the robot's "signature" on every order it places.
    • Why is it so important? If you run multiple EAs (or several copies of the same EA) on your account, each instance must have a different Magic Number. Otherwise, the EAs will conflict with each other by trying to manage orders that aren't theirs, which leads to chaos and unpredictable results.
    • Good practice: Assign numbers in an organized way, such as `34501` for the first chart, `34502` for the second, and so on.
DML Proximity Alert

Proximity Alerts

This feature acts as your personal assistant, notifying you when the price approaches a DML level you are interested in. This allows you to prepare for a potential trade without having to constantly watch the chart.

  • How it works:
    The feature requires two steps to activate:
    1. First, you must enable it globally by setting the `Proximity alerts` parameter to `true`.
    2. Then, on the chart, you need to click the 'A' (Alert) button - or hold down the CTRL key on your keyboard - and then click on the specific DML level you want to monitor. An 'A' will appear above the selected level, confirming that the alert for that level is active.
  • Proximity alerts: The master switch for the entire proximity alert functionality. If set to `false`, no alerts will trigger, even if activated on the chart.
  • Proximity activation distance [Points]: Specifies how close the price must get to the level to trigger an alert. The value is in points (not pips).
    • Example: If a DML level is at 1.08500 and you set the distance to `200` points, an alert will be triggered when the Ask price reaches 1.08300 (for an alert below the level) or the Bid price reaches 1.08700 (for an alert above the level).
  • Popup Alerts: Enables the standard alert pop-up window directly on your MetaTrader platform.
  • Mobile Alerts (Push): Enables push notifications to be sent to your phone via the MetaTrader mobile app.
    • Important Note: For mobile alerts to work, you must first configure your unique MetaQuotes ID in the settings of your desktop MetaTrader platform (in the menu: `Tools` -> `Options` -> `Notifications`).
DML Button Parameters

Button Parameters

This section allows for full customization of the control panel that appears on your chart. This panel is your command center for quickly managing the visibility of DML levels and activating interactive functions.

  • Show Button: The master switch for the entire panel. If set to `false`, none of the buttons described below will be visible.
  • Buttons Position: Selects the corner of the chart where the panel will be displayed.
  • Show Hide All (H) / Extend (E) & Alert (A) Buttons: These parameters allow you to show or hide the individual helper buttons, letting you create a more minimalist panel if desired.
  • Helper Buttons: The panel includes special function buttons that act as interaction modes:
    • H (Hide All): A global visibility toggle. A single click hides or shows *all* DML levels at once, overriding the individual settings for each level group. It’s a quick way to clear your chart.
    • E (Extend): Activates the "Extend Levels" mode. After clicking 'E' (the button will become bolded), you can click on individual DML lines on the chart to permanently extend them into the future. Clicking the level again will toggle the extension off. To exit this mode, simply click the 'E' button again. There is also a "hidden" function to extend a DML line: click on the desired DML level while holding down the SHIFT key.
    • A (Alert): Activates the "Set Alerts" mode. It works similarly to the 'E' button. After clicking 'A', you can click on any DML line to arm a proximity alert for it (using the settings from the *Proximity Alerts* section). There is also a "hidden" function to set an alert on a DML line: click on the desired DML level while holding down the CTRL key.
  • Helper Buttons Position: This parameter determines where the helper buttons (H, E, A) will appear relative to the main level buttons (e.g., top, bottom, left, or right).
  • Other Appearance Parameters: Use options like `Button X/Y Size`, `Button Text Color`, `Button Font Size`, etc., to precisely adjust the size, color, and spacing of the buttons to match your trading workspace and chart template.
DML MultiReaction Level Parameters

Level Parameters (Level 01 - 12)

The EA allows configuration for up to 12 independent slots for DML levels. Each slot has identical parameters, enabling the creation of complex strategies. To activate a slot, simply enter the level's name in the `DML Level Name` field.

  • DML Level Name: The name of the DML level to be monitored (e.g., "SkyBlue", "Khaki"). Leaving this field empty deactivates the slot.
  • Levels In Row Minutes: The time in minutes during which the EA looks for level stabilization (consolidation).
  • Level In Row Tolerance (Points): The maximum allowable distance in points by which consecutive level lines can differ during the consolidation period to be considered valid.
  • Start/Stop Check Time: The time window in which the EA actively searches for level "breakaway" signals.
  • Start/Stop After Setup (Minutes): Defines, after what time (in minutes) from detecting consolidation, the EA should start and stop looking for an entry signal. This allows, for example, to avoid trading immediately after detecting a setup and wait for further market development.
DML MultiReaction Strategy Parameters

Strategy Parameters

Global settings that affect the logic of opening and managing positions.

  • Trading Direction: A global filter for trade direction. You can restrict the EA to only BUY positions, only SELL positions, or both.
  • Min Distance Between Setups: The minimum distance in points that must be maintained between a newly opened setup and any other already existing on the chart. This prevents excessive risk concentration.
  • Max Setups On Level: The maximum number of setups that can be opened based on a signal from the same level within one day.
  • Check Level Crossed Before Execution: An additional filter that checks if the price has already "tested" the entry level after the signal was generated. If so, the order will not be opened.
DML Setup Parameters

Setup Parameters / Lot Size Management

This key section allows you to precisely define what size the opened positions will have and how the EA will initiate and manage the entire lifecycle of a trading setup.

Setup Lifecycle Management

These parameters control how long a setup is active and under what conditions it is removed.

  • Setup Expiration Minutes: The time in minutes after which an inactive setup (a set of pending orders) will be automatically deleted. A value of `0` means the orders never expire. Setting a specific value (e.g., 120 minutes) prevents "catching" old signals that may have lost their relevance.
  • Delete Opposite Setup After Entry: If set to `true`, the activation of one setup (e.g., SELL) will cause the automatic deletion of all pending orders for the opposite setup (BUY). This prevents holding open positions in both directions simultaneously.
  • Max Opened Setup Number Per Level: The maximum number of setups that can be opened from the same DML level within a single day. A value of `0` disables the limit. Setting it to `1` means that after a trade from a specific level is closed, the EA will not open a new position on that same level until the next day.

Lot Size Mode

Choose the method by which the robot will calculate the trade volume.

  • fixed: The simplest method. The EA will use the exact lot values you manually enter in the Position Size... fields.
  • Lot_perBalance: Volume is calculated dynamically based on the account balance. In the Balance For Position field, you specify what amount of the balance corresponds to the base lot (e.g., 0.01).
  • Risk_from_Balance / Equity / Amount: The most advanced modes. The EA will automatically calculate the position size for the entire grid so that if the Stop Loss is hit, the total loss will not exceed a set percentage of your capital (Resked Percent) or a specific amount (Risked Amount).
  • Lot Difference: Determines whether subsequent positions in the grid have the same lot size (`same_for_all`) or if their size is a multiplier of the base position (`multiplier_for_baseLot`), which allows for Martingale-style strategies.

Entry and Calculation Settings

  • Open Shift Mode: Decides how the distance for grid orders is measured:
    • range_Multiplier (Recommended Mode): The distance is dynamic and depends on the distance between the strong and weak S/R levels.
    • in_points: The distance is fixed, specified in points.
  • First Order At Market: Determines if the first order is a pending (`false`) or market (`true`) order.
  • Used Price Level For Shifts: Defines the reference point for calculating the distances of subsequent grid orders. It can be the original DML level (`level_price`) or the actual execution price of the first position (`first_order_price`).
  • Used Spread [Points]: The spread value in points used by the EA for internal calculations, e.g., when placing orders. This is particularly important in the Strategy Tester to simulate real market conditions.
MMD Grid Orders Filter Parameters

MMD Grid Orders Filter

This group of parameters is used to configure a trend filter based on the MMD methodology. Its purpose is to conditionally allow the opening of subsequent orders in a grid based on the analysis of moving average clouds. This filter applies to all positions in the Grid, beyond the value entered in the Open Pending Grid Number parameter.

  • Use MMD Grid Orders Filter

    The main on/off switch for the filter. Setting it to true activates filtering. When false, subsequent grid orders will be opened based solely on the price levels defined in the grid parameters, without trend verification.

  • Fast MA Cloud Period

    Defines the period for the fast moving average cloud. Based on this value, the EA creates a cloud consisting of a Simple Moving Average (SMA) and an Exponential Moving Average (EMA) of the same period. This cloud reacts more quickly to price changes.

  • Slow MA Cloud Period

    Defines the period for the slow moving average cloud. Similarly, it creates a cloud from an SMA and EMA with a longer, smoother period, which helps in identifying a more stable trend.

  • Time Frame for MA Clouds

    Defines the timeframe on which both moving average clouds are calculated. This allows the trend analysis to be based on a different timeframe than the one the Expert Advisor is running on.

How the filter works:

The MMD filter analyzes the relative position of the clouds.

  • To open a subsequent BUY order from the Grid, the fast moving average cloud must be above the slow moving average cloud.
  • To open a subsequent SELL order from the Grid, the fast moving average cloud must be below the slow moving average cloud.

If the condition is not met (e.g., the EA wants to open a BUY position, but the clouds indicate a downtrend), the order will not be opened, even if the price reaches its level from the Grid. The EA will wait for the moment the cloud configuration reverses and aligns with the direction of the grid being built.

DML Grid Setup Parameters

Grid Setup Parameters

Open Pending Grid Number: This parameter manages how the Expert Advisor builds the grid of pending orders on the market.

  • Description: It defines how many pending orders from the grid are placed on the market at one time. After an initial signal, the EA places exactly the number of pending orders defined in this parameter (e.g., 2). Subsequent orders from the grid are not added automatically after a previous one is activated.
  • Logic for Placing Subsequent Orders:

    A new pending order from the sequence is placed only when the price reaches the level defined for that order in the grid parameters. This process, however, depends on the state of the MMD Grid filter:

    • When the MMD filter is disabled (Use MMD Grid Orders Filter = false): The EA will unconditionally place the next pending order as soon as the price touches its defined level in the grid.
    • When the MMD filter is enabled (Use MMD Grid Orders Filter = true): For the EA to place the next pending order, two conditions must be met simultaneously:
      1. The price must reach the level of that order as defined in the Grid.
      2. The direction indicated by the moving average clouds must be consistent with the order's direction.

A grid involves opening subsequent orders at predetermined intervals as the price moves against your initial position. The main goal is to average the entry price, which means a smaller price movement in the desired direction is needed to achieve profit or reach Break-Even.

Position Size Fixed/Multiplier 01 ... 10: Here you define the lot size for each of the up to 10 levels of the grid. If you only want to use 5 orders, leave the value 0.0 in fields 06 through 10.

Open Shift 01 ... 10: This is a crucial setting that determines where the pending orders will be placed. It works as follows:

  • Open Shift 01: Defines the distance of the first order from the DML SkyBlue level. A value of 0 means the first order will be placed exactly on the level.
  • Open Shift 02 to 10: Define the distance of subsequent orders from order #1. This is not the distance from the previous order, but from the first one.

Open Shift Mode: Decides how the distance for the Open Shift parameter is measured:

  • range_Multiplier: The distance is dynamic and depends on the DML level's "range," which is the distance between the solid line (main level) and the dashed line (extended level).
  • in_points: The distance is fixed and specified directly in points.
DML Pyramid Setup Parameters

Pyramid Setup Parameters

Pyramiding is a strategy of adding more orders as the price moves in the direction of your open, profitable position. The goal is to maximize profit during a strong trend.

Use Piramide Orders: The master switch (true/false) to enable or disable the entire pyramiding function.

The remaining parameters work analogously to the grid, except that distances are calculated in the profitable direction.

DML Take Profit and Stop Loss Parameters

TP & SL Parameters

Advanced options for managing Stop Loss and Take Profit orders.

  • InitialTP_Points / SLShift: Sets the initial Take Profit and Stop Loss value in points for the entire setup.
  • Use Move TP: Activates the dynamic Take Profit adjustment feature. You can define up to 4 conditions – after a specific position in the grid is opened, the common TP for all orders will be moved to a new, defined level.
Move SL & BE Parameters

Move SL & BE Parameters

  • Move SL/BE: A dynamic function to move the Stop Loss (or to Break Even). It allows setting 4 thresholds that, once reached by the price, will move the SL to a new, safer level.

Trailing Stop Parameters

Trailing Stop Parameters

  • Trailing Stop Parameters.
DML Risk and Safety Functions

Risk & Safety Functions

Additional modules to protect capital and secure profits.

  • Safe Profit Function: A profit protection feature. When the price gets close to the TP, the function "arms" itself. If the price then retreats by a set amount, all profitable positions (or the entire setup) are closed to secure a portion of the profit.
  • Max Daily Loss: The maximum allowable daily loss in your account currency. Once reached, the robot stops opening new setups for that trading day.
Trading Time Parameters

Trading Time Parameters

Time filters allow you to adapt the EA's operation to specific sessions or avoid undesirable market periods.

  • Trading Time Parameters: Allows you to precisely define the days of the week and hours during which the robot is allowed to open new setups.
Exclude Time Parameters

Exclude Time Parameters

Exclude Time Parameters.

  • Exclude Time Parameters: Lets you define a "time window" during which the robot will not open new orders (e.g., during spread widening at session rollovers).
MMD Filter Parameters

MMD Filter Parameters

MMD Filter Parameters.

  • MMD Filter Parameters: A trade filter based on the MMD methodology (moving average clouds). It allows you to define two moving averages (SMA and EMA) from a selected timeframe. The robot will only open positions if the signal from the levels aligns with the direction indicated by the clouds.
Position Control Panel

Position Control Panel

Position Control Panel.

  • Position Control Panel.
Download DML Expert Advisors

Download

To download the latest version of this tool, go to the Download section in your client panel.


Go to the Download section
This site uses cookies. Without changes to your browser cookies will be stored on your device. Your can find more informations here.
Close