Add risk management functionality to an existing EA

MQL4 Esperti

Lavoro terminato

Tempo di esecuzione 3 minuti
Feedback 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.
Feedback del dipendente
Excellent customer. Thank you for the order, it was a pleasure working with you.

Specifiche

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


Con risposta

1
Sviluppatore 1
Valutazioni
(39)
Progetti
54
61%
Arbitraggio
2
50% / 50%
In ritardo
0
Gratuito
2
Sviluppatore 2
Valutazioni
(307)
Progetti
312
70%
Arbitraggio
2
100% / 0%
In ritardo
0
Gratuito
Pubblicati: 1 codice
3
Sviluppatore 3
Valutazioni
(16)
Progetti
35
23%
Arbitraggio
4
0% / 50%
In ritardo
2
6%
In elaborazione
4
Sviluppatore 4
Valutazioni
(3)
Progetti
5
20%
Arbitraggio
3
0% / 100%
In ritardo
2
40%
Gratuito
5
Sviluppatore 5
Valutazioni
(11)
Progetti
18
28%
Arbitraggio
4
50% / 50%
In ritardo
1
6%
Gratuito
6
Sviluppatore 6
Valutazioni
(17)
Progetti
22
36%
Arbitraggio
5
0% / 100%
In ritardo
4
18%
Gratuito
7
Sviluppatore 7
Valutazioni
Progetti
1
0%
Arbitraggio
4
0% / 50%
In ritardo
0
In elaborazione
Ordini simili
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
BUY ALERT 1. Supertrend turns Bullish 2. On this candle , or during the last time Supertrend was Bearish, price was < or = MA1 3. On this candle , or during the last time Supertrend was Bearish , BBStops is Bearish 4. STEP MA1 and STEP MA 2 are both Bullish SELL ALERT 1. Supertrend turns Bearish 2. On this candle , or during the last time Supertrend was Bullish, price was
Rsi divergence 30+ USD
You need to create an EA that executes buy and sell based on the signals of an rsi divergence indicator in trading view. The indicator is not in MT5 and must be added separately. pine script availabel
I WANT A TRADING ROBOT WITH GOLD STRATEGY THAT COULD TAKE ME TO 1MILLION$ TODAY,PLEASE KINDLY GENERATE THE BOT, DEBUGG COMPILE AND THEN GIVE ME WHEN EVER YOU ARE READY, ILL BE WAITING THANK YOU

Informazioni sul progetto

Budget
50+ USD
Scadenze
a 3 giorno(i)