Expert Advisor based on BB MacD and Donchian Channel

MQL4 Esperti

Lavoro terminato

Tempo di esecuzione 8 giorni

Specifiche

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 if activated, the EA must change from one to another as indicated below, it will always be a cycle that starts from 0 in normal mode, if it has benefits it will restart to normal mode again at 0, if on the contrary it has losses they will continue the following indications.

The Risk can be defined by user for trades in main normal mode and both Scout in a %. Calculating the lots for the % assigned based on the current balance and distance to the SL.

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 (main) with the same SL and TP and the risk is the amount of losses, and a Scout (optional) with the same risk as in normal mode.

Example (pic attached as example1)

Risk 1%

1. an operation is opened, it has a loss of 0.4% (x2 with the scout). When it does not reach 1%, it is still in normal mode.

2. A second operation is opened, we continue in normal mode but it does not reach the SL but almost 0.9% (current loss 0.8% of previous + 1.8% now = 2.6%, so recovery is activated, since it is greater than 1%)

3. A new operation is opened, this one of recovery, the risk of main would be 2.6% that of scout would follow in 1% for the calculation of lots, has a small gain 0.4% in total. Then the current loss is 2.2%, recovery is not deactivated until all losses are recovered.

4. a new loss of 0.2% losses rise to 2.8%

5. 0.4% loss 3.2%

6. With the risk at 3.2%, the main one would recover the losses, the scout would remain open until 7 opposite signal.

7. The EA would return to normal mode restart the cicle and open a new one with the 1% of normal risk…

Recovery Mod essentials:

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 (infinity) 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.



When all recovery is finished the counters return to 0 and the normal mode begins. Or If the maximun consecutive recovery is reached.



Trading Signals for both modes:

  • 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.

In the Normal mode: 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.1000 and the price goes to 1,090 the sl goes to BE



Positions are opened: at the market price, when a new bar open if the BBMACD change color in the opposite direction, only for closed bars.



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 of recovery mod (numer of attemps)

  • Risk in recovery mod in %

  • Total losses fo the current Recovery basket (only for that pair and cicle), currency of the account.





Coment in order


Main (Normal Mode)

Scout (Normal Mode)

Recovery and number or attempt (Only in Recovery)

Recovery Scout (Only in Recovery)


Con risposta

1
Sviluppatore 1
Valutazioni
(769)
Progetti
1033
44%
Arbitraggio
50
8% / 50%
In ritardo
117
11%
Gratuito
2
Sviluppatore 2
Valutazioni
(4)
Progetti
6
33%
Arbitraggio
3
0% / 100%
In ritardo
0
Gratuito
3
Sviluppatore 3
Valutazioni
(135)
Progetti
192
42%
Arbitraggio
17
29% / 59%
In ritardo
28
15%
Gratuito
4
Sviluppatore 4
Valutazioni
(23)
Progetti
45
20%
Arbitraggio
24
29% / 46%
In ritardo
12
27%
Gratuito
5
Sviluppatore 5
Valutazioni
(5)
Progetti
9
0%
Arbitraggio
5
20% / 20%
In ritardo
1
11%
Gratuito
6
Sviluppatore 6
Valutazioni
(1235)
Progetti
2820
80%
Arbitraggio
156
22% / 43%
In ritardo
488
17%
Gratuito
7
Sviluppatore 7
Valutazioni
(167)
Progetti
192
11%
Arbitraggio
37
38% / 35%
In ritardo
5
3%
Caricato
8
Sviluppatore 8
Valutazioni
(117)
Progetti
138
41%
Arbitraggio
30
7% / 77%
In ritardo
17
12%
Gratuito
9
Sviluppatore 9
Valutazioni
(356)
Progetti
632
26%
Arbitraggio
89
73% / 13%
In ritardo
12
2%
Gratuito
Ordini simili
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
Hello, I have an indicator from a friend and I'd like to replicate it on my own TradingView or MT5 platform. Could you assist me with that?. Here is the link
so basically I have an EA(mql5), AI script(python), flask server and socket server both on python. Now this is an experimental script as I am trying to learn. However the EA is not entering any trades. How much would it cost for you to troubleshoot this for me? Thank you in advance
NEW FUNCTION 50+ USD
La idea es la siguiente, sería un EA semi automático. Yo como trader opero en zonas. En adelante las vamos a denominar ``zonas calientes´´. El EA debe que necesito debe operar conforme a 4 zonas calientes que yo configure en el mismo. ¿Qué hará el EA en cada una de esas zonas calientes que yo he configurado? En cada una de estas zonas el EA debe realizar hedging (crear un rango en el cual el EA entrara en sell o en
I have the bot just over half made, from another developer who let me down and decided they no longer wished to finish the project, so I have a basic example of the fundamentals of what it could look like, although multiple functions I require do not work, but I can show this to you on request. There are multiple features that I require, so please read the in depth requirement sheet on the attachment. Function: To

Informazioni sul progetto

Budget
40 - 70 USD
IVA (21%): 8.4 - 14.7 USD
Totale: 48.4 - 84.7 USD
Per lo sviluppatore
36 - 63 USD