Add risk management functionality to an existing EA

MQL4 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 3 minutos
Comentario del Cliente
I have been super impressed with Pedro's understanding of my requirements, his sensible suggestions and enhancements, his efficiency and the quality of his coding. Highly recommended developer.
Comentario del Ejecutor
Excellent customer. Thank you for the order, it was a pleasure working with you.

Tarea técnica

This task is straightforward for an experienced MT4 developer (if you are not experienced in coding please do not apply for this job) and $50 is a fair rate for the work and the given timeline. I need updates to an existing EA to enhance its risk management features and implement a profit-locking mechanism. The changes should not interfere with the existing logic but rather add the following functionalities:

  1. Enable or disable trading.
  2. Set a daily profit cap with configurable options once the cap is reached.
  3. Set a daily loss cap with configurable options once the cap is reached.

Deadline: The update is required by 1 PM GMT on Saturday, 14 September, so I can conduct testing in the afternoon.


The EA already calculates daily profit/loss and displays on screen so this is the figure it should use for the Daily Profit Cap and Daily Loss Cap




New Input Parameters:

  1. Allow Trading
    • Description: This input allows you to enable or disable trading activity.
    • Type: Boolean (Yes/No)
    • Function: When set to "No," the EA will stop opening new trades but will manage any existing open trades based on the EA's internal logic.
    • Default: Yes
  2. DailyProfitCap
    • Description: A limit for daily or session profits based on a percentage of the current account balance.
    • Type: Float (Percentage of account balance)
    • Function:
      • If set to 0, the profit cap function is disabled.
      • If a profit cap is set and reached, the EA will act according to the selected option in DailyProfitCapOptions.
    • Default: 0 (Disabled)
  3. DailyProfitCapOptions
    • Description: Defines the behavior of the EA once the DailyProfitCap is reached.
    • Type: Enum (Option 1, Option 2, Option 3)
    • Options:

1.                  Automatic Restart: The EA will close all open trades and stop trading for 24 hours. After the 24-hour period, it will automatically resume trading.

2.                  Manual Restart: The EA will close all open trades and stop trading. Trading will remain halted until the user manually toggles Allow Trading to "No" and then back to "Yes."

3.                  Await Next Breakout: The EA will close all open trades and stop trading. Trading will resume when a new candle breakout signal is detected.

  1. DailyLossCap
    • Description: A limit for daily or session losses based on a percentage of the current account balance.
    • Type: Float (Percentage of account balance)
    • Function:
      • If set to 0, the loss cap function is disabled.
      • If a loss cap is set and reached, the EA will act according to the selected option in DailyLossCapOptions.
    • Default: 0 (Disabled)
  2. DailyLossCapOptions
    • Description: Defines the behavior of the EA once the DailyLossCap is reached.
    • Type: Enum (Option 1, Option 2, Option 3)
    • Options:

1.                  Automatic Restart: The EA will close all open trades and stop trading for 24 hours. After the 24-hour period, it will automatically resume trading.

2.                  Manual Restart: The EA will close all open trades and stop trading. Trading will remain halted until the user manually toggles Allow Trading to "No" and then back to "Yes."

3.                  Await Next Breakout: The EA will close all open trades and stop trading. Trading will resume when a new candle breakout signal is detected.


Summary of Key Inputs

Input

Description

Default

Allow Trading

Enable or disable EA trading

Yes

DailyProfitCap

Limit for daily/session profits (as a %)

0 (if 0 Disabled)

DailyProfitCapOptions

Actions when profit cap is reached

Option 1

DailyLossCap

Limit for daily/session losses (as a %)

0 (if 0 Disabled)

DailyLossCapOptions

Actions when loss cap is reached

Option 1


Han respondido

1
Desarrollador 1
Evaluación
(8)
Proyectos
11
9%
Arbitraje
1
0% / 100%
Caducado
0
Trabaja
2
Desarrollador 2
Evaluación
(192)
Proyectos
195
76%
Arbitraje
2
100% / 0%
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(11)
Proyectos
26
27%
Arbitraje
3
0% / 0%
Caducado
1
4%
Trabajando
4
Desarrollador 4
Evaluación
(2)
Proyectos
3
33%
Arbitraje
2
0% / 100%
Caducado
2
67%
Libre
5
Desarrollador 5
Evaluación
(10)
Proyectos
17
24%
Arbitraje
3
67% / 33%
Caducado
2
12%
Libre
6
Desarrollador 6
Evaluación
(17)
Proyectos
22
36%
Arbitraje
2
0% / 100%
Caducado
4
18%
Libre
7
Desarrollador 7
Evaluación
Proyectos
1
0%
Arbitraje
2
0% / 0%
Caducado
0
Trabajando
Solicitudes similares
I looking for someone to build a simple ea for MT5 that trades a predetermined number of trades per day, lots and SL\TP. Not particular strategy in mind, but it must be NOT based on Martingale\Grid strategies
**Description:** I am looking for an experienced MQL4 programmer to develop a sophisticated Expert Advisor (EA) for MetaTrader 4 (MT4) using a **Hidden Markov Model (HMM)** to predict market trends for forex trading. The EA will be used for live trading on forex pairs like EUR/USD and should incorporate statistical modeling with advanced machine learning algorithms. ### **Requirements:** - **Strong MQL4 Expertise**
This project will be carried out in two phases Part one: Contrarian trading strategy Part two: Implement a control panel that will be displayed on the MT4 platform screen, including the required elements. What is a contrarian trading strategy? It is an investment approach that goes against the general market consensus. In other words, contrarian traders buy when the majority of investors are selling, and vice versa
This project will be carried out in two phases Part one: Contrarian trading strategy Part two: Implement a control panel that will be displayed on the MT4 platform screen, including the required elements. What is a contrarian trading strategy? It is an investment approach that goes against the general market consensus. In other words, contrarian traders buy when the majority of investors are selling, and vice versa
Software and EA 30 - 60 USD
i want someone who can code a trading bot for me.. with the candlestick range strategy.getting to know if you can be able to 1. identify Any higher time frame candle 2. wait for the next one to break either sell or buy side liquidity lets say it breaks the buy side 2.1 after breaking buy side the body of candle number 3 must close inside the wick of the candle we are looking for(taking buy or sell side LQD from) 3
I hope this message finds you well. I would like to request your assistance in developing a trade copier that transfers signals from MT5 (MetaTrader 5) to MatchTrader. The main features required are as follows: 1. Multi-Account Support: The copier should support adding multiple MatchTrader slave accounts, ensuring that trades executed in the MT5 master account are mirrored across all connected MatchTrader accounts
my manual trading is like this, i use the fibonaci with the levels of -0.25,-0.05,0,1,1.02,1.57: if it hits level 1.02 of the fibonaci the buy or sell order is going to be hit. the high or the low of a timeframe like 4 hours, 04:00 to 08:00 after that if it hits with the fibonaci high or low the pending order is going to run, i work with a hedge then another pending order depends if it hits the high or the low i
Telegram to Mt4 30+ USD
I am looking for a developer who can make an expert advisor (EA) that automatically copies telegram signals to MT4 account. So have the ability to adjust and manage trades - Read and copy trading signals posted on specific Telegram channels with different format than MT4. - Copy all signals including Entry Price, Multiple Entries, Stop Loss, Close Now, Close on Entry, Close on Half, TP HITTake Profit 1, Take Profit 2
Hello devs. I need someone who can create a full Working Pythone Bot for copy trades from solana wallets. I will put a solana wallet in code and Set up a fixed Solana value (for example 0.02SOL) and when some tracked wallet made a transaction bot need to made same transaction but with fixed lot. When tracked wallet selling this token, then bot need to Sell full value of Tokens or 90% of holded Tokens. I need to have
Introducing our EA®️—a sophisticated trading robot designed to help you pass prop firm challenges like FTMO and Fundingpips, and perform well on live funded accounts. Here’s what you need to know about our EA: - **How It Works**: Utilizes advanced trading algorithms tailored to market conditions, avoiding high-risk strategies such as martingale, grid, and hedging. It manages single and multiple orders for opening and

Información sobre el proyecto

Presupuesto
50+ USD
Para el ejecutor
45 USD
Plazo límite de ejecución
a 3 día(s)