Expert Advisor based on BB MacD and Donchian Channel

MQL4 Experts

Termos de Referência





The idea of the trading system is as follows: market entries are performed when BBMACD changes dot color, in the next bar. The SL and risk is determined by the Donchian Channel indicator.

The Expert needs 2 modes of working:

The user can choose if the EA works only in normal mode or in Normal and Recovery mode.

The Risk can be defined by user for trades in normal mode in a % of the balance in the moment of the opening. The EA will calculate the precise lots, so that the points up to the SL result in the% risk assigned.

Normal. Open 2 positions with the stoploss in the opposite line of the Donchian Channel, the main one 1 with a RR defined by user, so if the Stoploss is 300 and the RR “1” the tp 300, if the RR is “1.5” 450Tp... and the scout one without TP, but the same SL (300 in the example) Scout closes when a new signal appears.

If the losses are less than the risk, F.E. the risk of the normal orders are 1%(x2) risk and the last trades losses are 0,2%(main) and 0,2% (scout) sum 0,4% so stay in normal mode.

Recovery, If the Losses are greater than the % of risk open 1 order with the same SL and TP and the risk is the amount of losses, if the risk is 1% it has 3 consecutive loses of -0,2%(x2) + - 0,25%(x2) + -0,5%(x2)= -0,4% -0,5% - 1% = -1,9% open 1 order with 1,9% risk and reward, and if parameter is set to yes, 1 scout order with the defined Risk. The recovery mod reset and turns into normal when the losses are recovered.

Once the recovery mode is activated, it will remain until recovering the losses that activated it and those that were caused during the mode and will return to normal mode.

The maximun consecutive recovery trades and the maximum risk could be defined by user or 0 till recovery so:

  • If the maximun consecutive recovery is set to 0=to infinity, if 5, the EA will try to recover 5 times and reset to normal mode.

  • Maximun risk of recovery is made to limit the “martingale” of the Recovery, if the recovery fail to recover the loses no more than the risk of this parameter will be open. IF max recovery risk is 5% the greatest order of the EA will be with 5% risk. Example, if the losses are 7% the EA will open an order of 5% if succeed the next order will be open with 2%, if fails the risk will be 2% + the last losses till recover with a maximun of 5%.

  • If the maximun risk is reached, no open for scout even is recovery scout is set to YES







Trading Signals:

  • Closes and open a new order if the BBMACD change color in the opposite direction, only for closed bars.

  • No open a new trade if the sl or tp is reach until a new signal.

Trailing Stop.

If the main position reach TP, the SL of the scout order goes to breakeven.



In the recovery Mod if the price goes in the direction of the trade and is at a defined by user distance of the TP the SL goes to Break Even, Example: fix amount of pips 10, if the buy opening is at 1.050, the SL 1,000 and the TP 1,1 and the price goes to 1,090 the sl goes to BE



Positions are opened: at the market price, when a new bar open. In the previous signal.



Close by Take Profit:— during position opening, Take Profit of main order is defined by RR parameter.



Trade in different pairs separetly The basket of losses will be different for every pair. And managed that way



User definable parameters:

  • Magic Number: for every pair

  • Recovery Mode: ON, OFF


  • Normal mode.


  • Risk (percentage of balance 1=1% 0,5=0,5% balance…)

  • Reward (multiple of Risk, if 1, sl 200 tp 200 if 1,5 sl200 tp 300…)

  • Use scout in normal mode (yes or not)


  • BBMACD

    • Fastlen:

    • Slowlen:

    • Length:

    • Stdv:

  • Donchian Channels

    • Bars to count


  • Recovery Mod
    • Maximun trades no take of consideration of scout only the main (0 = infinity)

    • Maximun Risk in % only for the main (0= infinity)

    • Distance to TP to trigger BE

    • Open Scout. Yes or not



Information in screen:

  • Magic number

  • Mode running actually (Normal or Recovery)

  • Level and risk of Recovery Mod

  • Risk in recovery mod

  • Total losses fo the current Recovery basket (only for that pair and recovery cicle)


Coment in order


  • Main
  • Scout
  • Recovery and number or attempt
  • Recovery Scout


Arquivos anexados:

MQ4
BB_MACD.mq4
13.6 Kb
EX4
BB_MACD.ex4
15.2 Kb

Respondido

1
Desenvolvedor 1
Classificação
(356)
Projetos
632
26%
Arbitragem
89
73% / 13%
Expirado
12
2%
Livre
2
Desenvolvedor 2
Classificação
(196)
Projetos
318
35%
Arbitragem
64
13% / 56%
Expirado
82
26%
Livre
3
Desenvolvedor 3
Classificação
(22)
Projetos
28
29%
Arbitragem
3
0% / 67%
Expirado
7
25%
Livre
4
Desenvolvedor 4
Classificação
(548)
Projetos
825
73%
Arbitragem
15
53% / 13%
Expirado
193
23%
Trabalhando
5
Desenvolvedor 5
Classificação
(28)
Projetos
30
50%
Arbitragem
4
0% / 100%
Expirado
8
27%
Livre
6
Desenvolvedor 6
Classificação
(253)
Projetos
408
38%
Arbitragem
85
44% / 19%
Expirado
70
17%
Trabalhando
7
Desenvolvedor 7
Classificação
(82)
Projetos
86
57%
Arbitragem
25
0% / 84%
Expirado
19
22%
Livre
8
Desenvolvedor 8
Classificação
(6)
Projetos
8
13%
Arbitragem
1
0% / 100%
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(117)
Projetos
138
41%
Arbitragem
30
7% / 77%
Expirado
17
12%
Livre
10
Desenvolvedor 10
Classificação
(195)
Projetos
395
28%
Arbitragem
155
20% / 52%
Expirado
112
28%
Livre
11
Desenvolvedor 11
Classificação
(258)
Projetos
395
28%
Arbitragem
69
19% / 49%
Expirado
120
30%
Livre
12
Desenvolvedor 12
Classificação
(2422)
Projetos
3042
66%
Arbitragem
77
48% / 14%
Expirado
340
11%
Trabalhando
13
Desenvolvedor 13
Classificação
(2077)
Projetos
2636
61%
Arbitragem
113
45% / 26%
Expirado
418
16%
Trabalhando
Pedidos semelhantes
I have a custom EA that works fine in the live market trading, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell orders, but I can't find anything, especially since it works fine in the real market and it opens both buys and sells
The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform
Hi, I have an indicator from my friend, I want to copy it to my own MT5 can you do that for me. Here is the link
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it

Informações sobre o projeto

Orçamento
50+ USD
IVA (21%): 10.5 USD
Total: 60.5 USD
Desenvolvedor
45 USD
Prazo
de 5 dias