Select language
Balance replenishment ALIEBAY


Discussion in 'Forex Market MQL5' started by James Goldman, Sep 11, 2020.

Recruitment of participants
37.00 USD
0 of 10
James Goldman
  1. James Goldman

    James Goldman Moderator
    Staff Member Organizer

    Jun 15, 2020
    Likes Received:


    Hammering is an automated trading system which works on any currency pair. Multi-currency and single-currency trading is performed.

    Making decisions the EA uses signals of the Slope Direction Line indicator.


    • Profit_Percent_AccountEquity = 0.4; - profit as percentage of free margin
    • Fix_AccountEquity = 0; - fixed level of free margin
    • FIX_PROFIT = 1000; - fixed level of profit
    • period = 55; - indicator period.
    • FilterNumber = 2; - indicator filter.
    • ma_method = 3; - indicator averaging method.
    • applied_price = 0; - price applied to the indicator.
    • TF = 15; - chart period of the indicator.
    • PAIRS = "EURUSD,GBPUSD,USDCHF,USDJPY"; - set of currency pairs for multi-currency trading.
    • MagicNumber = 6; - identifier of the EA's orders
    • TrailingStart = 9.5; - profit level in points. Initial level after which trailing starts, or launches.
    • TrailingStop = 0.5; - fixed trailing stop in the deposit currency
    • TrailingStep = 0.5; - trailing step in the deposit currency
    • LossClose = 2500000; - protection level in case of losses, closes all orders if loss occurs, set in points
    • Lots = 0; - fixed volume, if set to 0, ММ (Money management) is enabled
    • Risk = 0.3; - risk percentage when trade volume is calculated, valid if Lots=0.
    • PIP_LOCK = 13; - initial position drawdown level at which locking position will be opened, in points.
    • koef_LOT_LOCK = 2; - lot multiplier for locking position.
    • PIP_AV = 13; - level of the last position drawdown (if there is lock) at which averaging order will be opened
    • Level_Order = 13; - level from the current price to place a pending order.
    • koef_LOT_AV = 2; - averaging order lot multiplier.
    • Slippage = 30; - maximum allowed price slippage
    • MarketWatch = false; - broker's operation mode, if the broker does not allow to place SL and TP along with a position being opened, but by the way of modification only.
    • ALERT = true; - sound alert of exceeding maximum lot.
    • Revers = false; - reverse of the indicator's signals
    The EA Operation Principle

    The market is entered if there are signals from the Slope Direction Line indicator. The EA opens an initial position. If the initial position has a drawdown equal to or exceeding the PIP_LOCK parameter in points, a locking position is opened.

    Locking or averaging positions, which have a drawdown equal to or exceeding the PIP_AV parameter in points, will be averaged by pending BUYSTOP and SELLSTOP orders. Profit is fixed by virtual trailing in points. In case of multi-currency trading, calculation is made by a total number of points of all traded currency pairs.

    Multi-Currency Operation Mode of the Expert Advisor

    If you want the EA to work in the multi-currency mode, specify comma separated currency pairs, which will be traded by the EA, in the PAIRS setting, for example: PAIRS = EURUSD,GBPUSD,USDCHF,USDJPY. That means that the EA will trade only this 4 currency pairs. At that the EA is attached to ONE !!! currency pair, and all pairs must be opened in the market watch.

    Single-Currency Operation Mode of the Expert Advisor

    The EA can trade on several pairs with disabled multi-currency mode. Just specify one currency pair it will trade in the PAIRS setting. For example, you want to trade 4 currency pairs with independent operation of each EA. For this purpose specify EURUSD in the PAIRS setting and set MagicNumber to 1. Then attach the EA only to EURUSD. Do the same for the rest 3 currency pairs setting MagicNumber to different values (= 2, 3, 4 etc.). Thus, you will have 4 Expert Advisors - one per each currency pair.


Similar Threads
  1. Emma McNeill

Share This Page

Select language
Balance replenishment ALIEBAY
  • Subscribe to new topics

  • International online service AliEbay