Add risk management functionality to an existing EA

MQL4 Experts

Job finished

Execution time 3 minutes
Feedback from customer
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.
Feedback from employee
Excellent customer. Thank you for the order, it was a pleasure working with you.

Specification

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


Responded

1
Developer 1
Rating
(39)
Projects
54
61%
Arbitration
2
50% / 50%
Overdue
0
Free
2
Developer 2
Rating
(307)
Projects
312
70%
Arbitration
2
100% / 0%
Overdue
0
Free
Published: 1 code
3
Developer 3
Rating
(16)
Projects
35
23%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
4
Developer 4
Rating
(3)
Projects
5
20%
Arbitration
3
0% / 100%
Overdue
2
40%
Free
5
Developer 5
Rating
(11)
Projects
18
28%
Arbitration
4
50% / 50%
Overdue
1
6%
Free
6
Developer 6
Rating
(17)
Projects
22
36%
Arbitration
5
0% / 100%
Overdue
4
18%
Free
7
Developer 7
Rating
Projects
1
0%
Arbitration
4
0% / 50%
Overdue
0
Working
Similar orders
This is yakubu Jnr trading bots I create the trading robots to help my self and others traders to be successful please you can join my live trading bots or subscribe to my trading robots
Nyasco 90+ USD
Fast trading bot for starters less losses which leads to bigger profits made for thousands of people making billions of dollars .be the best trader for your self all the way
Nyasco 30+ USD
Faster robot with less losses which can be used for a long term earning money every day creating a bot for more than thousands of people to earn billions of money
Max amount grid 30+ USD
max amount grid step for magic number do keep deleting .only when it is in negative floating .but when it is profit allow to go over the max and replays to grid step
Apply with a screen of your work . Symbol Specific Logic . Live Chart Optimization Check the Core logic . [back tests as well] Change points to pips . Create buffer for the zone
I will pay 3000+ USD (negotiable) for an EA for existing MT5 that generates a minimum of 15-20% or higher a month consistently (provide source code after final deal) Looking for a highly profitable EA Please send demo version directly subject (Buying profitable EA Budget up to $ 3000 USD), past results and optimal settings so I can test, if it performs in a strategy tester i will also need option to forward test it
EA fx 30+ USD
Hello, I need an already developed EA similar to the one trading XAUUSD, with consistent entries and good risk management. Before we proceed, I would like to verify its performance. Please provide a live or demo account login along with the investor (read-only) password so I can monitor the trading results. I am looking for stable performance, controlled drawdown, and consistent profit on gold (XAUUSD). Once I
The strategy records the highest and lowest prices within a specified duration (default 15 minutes) after the New York market opens, forming the opening range. Post-Formation Breakout: When the price breaks above or below the opening range after its formation, it may indicate the direction of the day’s price movement. Trend Confirmation: The strategy uses two EMAs (default 20-period and 50-period) as trend filters to
Tengo una estrategia basada en divergencia para el oro sobre todo en tf m1 Basado en divergencia con stoch .. confirmando la entrada con ciertos parameteos de entrada Es mejor conversarlo para dar mejor los detalles Cuando entrar, porque o todas las divergencias se debe tomar para entrar en compras o ventas He adjuntado un ejemplo La confrmacion más exacta es el cruce de esos parámetros de stoch edebajo de level de

Project information

Budget
50+ USD
Deadline
to 3 day(s)