Expert advisor based on BB_MACD needed

MQL4 Asesores Expertos

Tarea técnica





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.

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). If the losses are less than the risk, F.E. the risk of the normal orders are 1%(x2) 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 it has 3 consecutive loses of -0,2%(x2) + - 0,3%(x2) + -0,5%(x2) open 1 order with 2% risk and reward, and if parameter is set to yes, 1 scout order with the defined Risk

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 5, the EA will try to recover 5 times and reset to normal mode.

  • If the maximun 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%, till recover. If the maximun risk is reached, no open for scout.





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

  • 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…)

  • BBMACD

    • Fastlen:

    • Slowlen:

    • Length:

    • Stdv:

  • Donchian Channels

    • Bars to count

  • Recovery Mod

    • Maximun trades (0 = infinity)

    • Maximun Risk (0= infinity)

    • Distance to TP to trigger BE

    • Open Scout. Yes or not


Information in screen:

  • Magic number

  • Level of Recovery Mod

  • Risk in recovery mod



Archivos adjuntos:

MQ4
BB_MACD.mq4
13.6 Kb

Han respondido

1
Desarrollador 1
Evaluación
(26)
Proyectos
34
26%
Arbitraje
7
14% / 43%
Caducado
7
21%
Libre
2
Desarrollador 2
Evaluación
(48)
Proyectos
91
31%
Arbitraje
28
29% / 43%
Caducado
42
46%
Libre
3
Desarrollador 3
Evaluación
(41)
Proyectos
87
13%
Arbitraje
30
30% / 47%
Caducado
35
40%
Trabajando
4
Desarrollador 4
Evaluación
(2393)
Proyectos
3006
65%
Arbitraje
76
47% / 14%
Caducado
340
11%
Trabajando
5
Desarrollador 5
Evaluación
(769)
Proyectos
1033
44%
Arbitraje
50
8% / 50%
Caducado
117
11%
Libre
6
Desarrollador 6
Evaluación
(195)
Proyectos
317
35%
Arbitraje
64
13% / 56%
Caducado
82
26%
Libre
7
Desarrollador 7
Evaluación
(4)
Proyectos
4
0%
Arbitraje
5
0% / 80%
Caducado
1
25%
Libre
Solicitudes similares
I have an EA that work fine. I am planning to run this EA on the same account(one account) but on two chart (one chart for only sell and second chart for only buy). this can be done easily on live account but I am trying to test the EA on backtest to see how it will affect the equity and balance. I am looking for any developer to rewrite the EA to be able to work as i need on backtest. without affecting the the
can you help me I have a strategy based on the indicators that appear in me on screen I want a robot that trades automatically when these signals appear. So, The strategy is focused on combining two indicators together. When they appear together at a certain value, Algo execution automatically enters a trade For positioning: Take profit (TP) :20 ticks Stop loss (TS): 8 ticks When the price reaches the target of 10
You need to modify the code to establish a secure socket connection for the MQL5 advisor on a port other than 443. You need to use only native methods, without custom libraries and DLLs My setup includes MT5 on Windows 11 and Node.js server on VMware Ubuntu. Connections and operations on port 443 were successful. However, attempting to connect to any other port results in the following error: "5274 Failed to
Hi there, I'm looking for profitable ready made EA with source code. EA should not use martingale or grid strategy. Low drawdown will be nice It can be MT4 or MT5 one. Thank you
Reverse engineer of these Eas which will be provided. Must work identical. Doesn't works more we just need to reverse engineer it so we can understand it the logic. these two stopped working after MT4 update this happened a few years ago but it was a quick fix in code and thats it
Welcome I want someone to give me an expert with the code and have it be profitable according to the specifications I wrote in the title, from 3 to 4%, and give me a report of the profitable results
First one is b ased on the indicator Gann Made Easy (MT4) . The Indicator provides no buffers but does have an event function. Can download and look at the Demo version. https://www.mql5.com/en/market/product/73721?source=Site+Market+MT4+Indicator+Rating006#description 1. Would like an EA to buy and sell on the arrows of the indicator (Red or Green) 2. Would like the Option of using the indicator's first take profit
Hello. Id like to change the trailing stop loss mechanism and ATR take profit to do the following: Assuming I've lost 3 trades and my lot size is automatically adjusted to 0.03, with a fixed SL of 10 pips id be negative 30 points. But assuming the ATR closes the next trade with a profit of 5 pips meaning a total profit of -15 points. Id like for the system to be adjusted to maintain the current lot size until a
Nick MJ 30+ USD
A forex bot is designed to automate trading in the foreign exchange market. It can execute trades based on pre-defined criteria such as price movements, technical indicators, or news events, potentially saving you time and allowing for more efficient trading. However, it's essential to understand the risks involved and carefully monitor the bot's performance
I'm in need of an experienced Meta 4 expert who can solve two specific problems and improve the current Martingale and Pyramid strategies within my EA. - Bug Fix: The EA is currently facing an issue where orders are not being executed correctly. This is causing a signal matching error and leading to potential losses. The primary task is to resolve this bug and ensure the EA executes trades accurately and as intended

Información sobre el proyecto

Presupuesto
30 - 50 USD
IVA (21%): 6.3 - 10.5 USD
Total: 36.3 - 60.5 USD
Para el ejecutor
27 - 45 USD
Plazo límite de ejecución
a 5 día(s)