EA MindTheGap forex robot

EA MindTheGap forex robot 1

EA MindTheGap v 3.00
Platform: Metatrader 4
Advisor model: 3.0
Timeframe: M15
Opening hours: Mondays
The algorithm of the advisor’s work is uncommon, so we’ll take a look at it in additional element.

  1. On Monday at 00:05, on the opening of the market, the adviser seems to be on the candles and appears for a spot with sure parameters:
    The gap from Low Friday candle to Open Monday ought to be a minimum of MinGap and no extra MaxGap factors for purchases and from Excessive to Open for gross sales.
    If you don’t discover the proper hole, we’re ready for the subsequent Monday.
  2. Examine the gap from the present worth to Low or Excessive final Friday candle. It must also be a minimum of MinGap. If much less, go to standby.
  3. If a spot is discovered, the filter is handed, the adviser seems to be to the place the primary “Monday” candle has closed. Subsequent, I’ll think about an instance for procuring.
  4. Candle closed down.
    4.1. We’re on the lookout for a possibility to position a pending order on the opening worth of Monday. If the gap isn’t sufficient, go to paragraph 4.2.
    4.2. Examine if we are able to enter the market. We’ve got two oscillators for this, useWWPREnter = true, UseCCIEnter = true. If two are turned off, the adviser will merely not test their readings, and whether it is unattainable to place a deposit, it should enter in response to the market. If a minimum of one of many oscillator filters is turned on, a test is carried out towards the degrees WPREnterLevel, CCIEnterLevel.
    If the filters aren’t handed – go into standby mode.
    4.2.1. Instantly after the oscillator filters, we test the unfold. If the present unfold is lower than MaxSpread, the market enters; whether it is better, it switches to the standby mode. By the way in which, the present common worth of the unfold over a interval of 100 candles is in contrast.
    4.3. Should you screw up all of the checks (a minimum of one), go to standby mode.
  5. The candlestick closed up.
    5.1. Right here we have now no deferrals, solely oscillator checks and the utmost unfold.
    5.2. If one thing didn’t go, go to standby.
  6. Work in standby mode. On this mode, the adviser on every tick checks the next circumstances:
    6.1. Oscillatory filter, disassembled above.
    6.2. Unfold Examine
    6.3. The sign standby mode runs easily for CandlesToWait candles. If the variety of ready candles is exceeded, we hammer into the sign.
  7. On the entrance of the market deposits are eliminated. If you activate the delay, the standby mode is canceled.
  8. With open positions available in the market, each tick checks the circumstances for exit on the identical oscillators. It’s sufficient that a minimum of one of many indicators reaches the CCIExitLevel or WPRExitLevel stage, respectively. If false, they have to all attain the required ranges on the similar time. On the similar time, if ExitInLoss is enabled, the adviser will exit the transaction when the exit circumstances seem, even at a loss. If ExitInLoss is turned off, a sure minimal revenue have to be accrued to be able to exit a deal, which have to be not lower than the MinExitTP from the take revenue of the order.
  9. Take revenue order is calculated merely:
    9.1. We’ve got TP in factors, it’s utilized by default.
    9.2. But when immediately the TP is lower than the MinTP from the hole (for instance, 0.5 from the hole), then for the TP we use MinTP from the hole.
    9.3. If it so occurs that the TP is bigger than the MaxTP from the hole (for instance, 2.5 from the hole), then for the TP we use the MaxTP from the hole.
  10. Cease is about in factors of the variable SL.
  11. MM switches to LotVariant variable, the selection is small – both a set lot FixLot, or a set threat of Danger as a share of the deposit. Advisable stage – not more than 3% per transaction
  12. Orders use slippage slippage management, Magic is about for all orders. If Magic = 0, the adviser will generate a novel magic for a selected pair of a selected chart of a selected terminal of a selected dealer account – effectively, in brief, you perceive)
    Orders might be opened NumOfTry as soon as in case of any issues – the Web has disappeared, the dealer has stopped, and many others. and many others.
  13. All positions are trawled with a easy trailing cease (TralOnPips is activated), at a distance of TrailingStop from the present worth.
    Furthermore, if TrailingFromBE is enabled, it should solely be tracked out of breakeven, if off – from a cease loss.
    The EA doesn’t use martingale and order grids, however can use twin entry mode, however with a half-reduced lot (relying on the units).
    The robotic has many settings, which makes it simpler to make worthwhile units for various forex pairs.