Add risk management functionality to an existing EA

MQL4 Эксперты

Работа завершена

Время выполнения 3 минуты
Отзыв от заказчика
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.
Отзыв от исполнителя
Excellent customer. Thank you for the order, it was a pleasure working with you.

Техническое задание

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


Откликнулись

1
Разработчик 1
Оценка
(40)
Проекты
55
62%
Арбитраж
2
50% / 50%
Просрочено
0
Свободен
2
Разработчик 2
Оценка
(326)
Проекты
331
71%
Арбитраж
2
100% / 0%
Просрочено
0
Свободен
Опубликовал: 1 пример
3
Разработчик 3
Оценка
(16)
Проекты
35
23%
Арбитраж
4
0% / 50%
Просрочено
2
6%
Работает
4
Разработчик 4
Оценка
(3)
Проекты
5
20%
Арбитраж
3
0% / 100%
Просрочено
2
40%
Свободен
5
Разработчик 5
Оценка
(11)
Проекты
18
28%
Арбитраж
4
50% / 50%
Просрочено
1
6%
Свободен
6
Разработчик 6
Оценка
(17)
Проекты
22
36%
Арбитраж
5
0% / 100%
Просрочено
4
18%
Свободен
7
Разработчик 7
Оценка
Проекты
1
0%
Арбитраж
4
0% / 50%
Просрочено
0
Работает
Похожие заказы
I need a fully automated custom Expert Advisor for MetaTrader 5 (MQL5). The EA is intended for use on a The5ers $100,000 2-Step prop-firm account. IMPORTANT DELIVERY REQUIREMENT: I must receive the complete editable .mq5 source code as well as the compiled .ex5 file. Compiled-only delivery is NOT acceptable. The EA must be coded specifically for this project and must not copy trades, use external trading signals or
I've got a Pine Script from Trading View. I need help from a programmer who can help with optimising the strategy by 1) Adding a couple of further rules 2) Redesign the trading alert arrows & colours I need, please, a programmer who is 1) Good at Pine language 2) Has excellent after-job support (not for free though) 3) Possess the ability to work with others. 4) Able to deliver the job at the shortest possible time
I need an experienced TradingView Pine Script developer to build and test a custom intraday strategy for NQ/MNQ . I am not looking for a conversion . I need the strategy researched, developed, tested, and optimized based on my requirements. Requirements: NQ/MNQ intraday trading 5–15 minute charts New York session only Flat before market close Base logic using Zero Lag Signals , with additional filters if justified
Le robot devra : Respecter strictement les règles de risque des comptes FTMO : perte journalière maximale, perte maximale totale, taille des positions, etc. Intégrer un système de gestion du risque automatique. Être capable de gérer différents types de comptes et tailles de capital. Être basé sur ma stratégie et mes règles de trading que je fournirai au développeur. Être entièrement automatisé pour l’exécution des
I am looking for an experienced MQL5 developer to build a professional MT5 Expert Advisor specifically for XAUUSD (Gold) and other indices. I saw that XAUUSD is one of your primary areas of specialization, so I would like to discuss a custom EA with you. My priority is NOT extremely high returns. I want a robust EA designed for controlled risk and long-term survival. Requirements: • MT5 / MQL5 • XAUUSD, usoil,btc and
VENOM EA 35 - 50 USD
So, im a beginner and I'm pleading you to built me a bot that runs 24hrs and that can buy and sell at the same time, choose a better and profitable strategy. I will do anything thing it takes to get the bot. I hope you take my request into consideration
Je cherche un développeur MQL4 / MQL5 expérimenté pour créer un robot de trading automatique (Expert Advisor) performant et sécurisé. Validation de comptes Prop Firm capable de trader sur le forex et les matière première
XAUUSD Digger 50 - 300 USD
I want you to create a strategy that fits for my funded account conditions like winrate of 60%+ with good risk reward ratio min 1:2 and max drawdown per day is 2% or 3% and overall should be less then 10% with less consecutive losses should be able to finish the funded stage in of phase 1 8% target and phase 2 of 10% target in a month with good number of trades in a month need journal of all the back tested data and
I need a simple Expert Advisor for MT5 that trades based on RSI overbought/oversold levels. - Entry: Buy when RSI(14) < 30, Sell when RSI(14) > 70 - Exit: Take Profit and Stop Loss as adjustable input parameters (default 50/25 pips) - Position sizing: Risk 1% of account balance per trade, auto-calculated from stop-loss distance - Timeframe and currency pair: adjustable inputs, not hardcoded - Should include basic
1. Trading Instruments: - The robot should trade exclusively on the following currency pairs: - NZD/CHF - NZD/USD - GBP/USD 2. Trading Style: - The robot should implement a day trading strategy, focusing on short-term trades. 3. Risk Management: - Maximum drawdown percentage: 10%. - Stop loss settings: Adjustable based on volatility (suggested default: 30 pips). - Take profit settings: Adjustable

Информация о проекте

Бюджет
50+ USD
Сроки выполнения
до 3 дн.