Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

DeMarker gaining position volume - expert for MetaTrader 5

Views:
3122
Rating:
(37)
Published:
2022.04.21 06:44
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Trading strategy

The main idea of this Expert Advisor: is it possible to open 'BUY' positions on each new bar while the 'DeMarker' indicator is below the 'DeM: Level DOWN' level (the 'SELL' positions while the 'DeMarker' indicator is above the 'DeM: Level UP' level). By default, the 'Positions: Only one' parameter is set to 'false' - so the EA can work in the "open a new position even if there are already positions in the market" mode.

Each new position is opened at the moment of the birth of a new bar, and there is no check whether the opening price is the best. 

There is no Stop Loss, Take Profit, or Trailing in the Expert Advisor - positions are closed according to the opposite signal and only if after closing the positions there will be a profit greater than zero.

DeMarker gaining position volume

Rice. 1. DeMarker gaining position volume

An example of testing for all symbols

Settings

Rice 2. Settings


Inputs

Rice 3. Inputs


Result

Rice 4. Result


    Now more about each group of parameters:

    Trading settings:

    'Working timeframe' - working timeframe. The timeframe on which indicators are created and on which a new bar is searched.

    Position size management (lot calculation)

    The lot can be either permanent ('Money management' set to 'Constant lot' and set the lot size to 'The value for "Money management"') and dynamic - in percent risk per trade ('Money management' set to 'Risk in percent for a deal' and set the risk percentage in 'The value for "Money management"'). You can also set a constant lot equal to the minimum lot - 'Money management' set to 'Lots Min'.

    Additional features:

    Flag 'Positions: Only one' set to 'true' allows the EA to have no more than one position in the market. The flag 'Positions: Reverse' is responsible for signal reversal. 'Print log' prints an extended log of all operations.

      Engulfing Pattern Plus One Engulfing Pattern Plus One

      Engulfing Pattern Plus One

      CHO Smoothed Arrow 2 CHO Smoothed Arrow 2

      Version 2. Indicator based on 'Chaikin Oscillator, CHO'. Line intersection of 'CHO' and 'smoothed CHO'

      Listing all MT5 Signals' properties to a CSV file Listing all MT5 Signals' properties to a CSV file

      This simple quick & dirty script code will output a CSV file of all the Signals' properties as reported by the MQL5 Trade Signals functionality.

      Trend Two Lines Trend Two Lines

      The indicator in the subwindow shows a comparison of High and Low prices