MQL5: Box trading EA

Spécifications

Project Overview:

We are looking to hire an experienced MQL5 developer to create an Expert Advisor (EA) that performs a specific trading strategy involving buy-stop and sell-stop orders at a predefined time each day. The EA will dynamically adjust the lot sizes based on market conditions, and it will manage trades and orders with a focus on controlling drawdown and maximizing profitability.

Requirements:

  1. Inputs:

    • MagicNumber: Configurable (e.g. 12345)
    • Lots: Configurable (e.g. 0.01)
    • Trading Time: Configurable (e.g., 08:30 )
    • Distance: Configurable (e.g., 20 points)
    • TakeProfit: Configurable (e.g., 20 points)
    • LotSizeIncreaseFactor: Configurable (e.g., 2 which means new lot size = 0.01 + x * 0.01 )
    • Max-Draw-Down: Configurable (e.g., 1% of account equity)
    • CloseAllTradesAtEndOfDay? True/false
    • CloseAllTrades: Configurable (e.g. 23:00)
    • GoFullHedge: True/false
    • GoFullHedge%: Configurable (e.g. 0.5% of account equity)
  2. Core Functionality:

    • At a configurable time each day (e.g., 08:30 ), the EA should open both a buy-stop and a sell-stop order at a specified distance (e.g., 20 points) from the current market price.
    • A unique MagicNumber to distinguish the orders from the ones from other EAs
    • If one of the stop orders is triggered (e.g., buy-stop), the EA should increase the lot size of the opposite stop order (e.g., sell-stop) by a configurable factor (e.g., 2x ).
    • If the price reverses and triggers the opposite stop order (e.g., sell-stop after buy-stop), a new order (e.g., buy-stop) should be placed with the increased lot size at the same price level as the original stop orders.
    • The EA should continue this cycle of placing new orders at the original price level, alternating between buy-stop and sell-stop orders with increased lot sizes, until the TakeProfit level is reached or the Max-Draw-Down limit is hit.
    • There can only be one active buy-stop or sell-stop order at any given time.
    • If set to true, all open trades and stop-orders should be closed at the given time
    • If GoFullHedge is set to true, a hedging position should be opened, once the %-value is reached, and at the next day and then a new cycle would be opened (which would close all trades once tp is reached)
    • A new cycle should be started at the next day.
  3. Extra Functionality:

    • The EA should automatically close all open trades and cancel any pending orders when the TakeProfit level is reached.
    • The EA should monitor the drawdown of all open positions associated with the MagicNumber. If the drawdown reaches the configured Max-Draw-Down percentage, all trades should be closed, and any remaining pending orders should be canceled.
  4. Market Scenario Example:

    • At 08:30 , both buy-stop and sell-stop orders are placed at a distance of 20 points from the current market price.
    • If the buy-stop order is triggered, the EA increases the lot size of the remaining sell-stop order.
      • If the price continues in the buy direction and hits the TakeProfit, all orders are closed.
      • If the price reverses and triggers the sell-stop order, the EA places a new buy-stop order with an increased lot size, continuing the cycle.
    • This process continues indefinitely until the TakeProfit level is achieved or the Max-Draw-Down limit is reached.

Deliverables:

  • The complete and fully functional Expert Advisor (EA) in MQL5 format.
  • The source code of the EA, allowing for future modifications.
  • Documentation explaining how to configure and use the EA.

Notes:

  • The EA should be optimized for performance and efficiency, minimizing resource usage and ensuring quick response times during trading sessions.
  • Code quality is important, with clear comments and structure to facilitate understanding and future modifications.




















































































Dossiers :

PNG
Orderflow.png
26.6 Kb

Répondu

1
Développeur 1
Évaluation
(198)
Projets
321
16%
Arbitrage
21
38% / 33%
En retard
17
5%
Chargé
2
Développeur 2
Évaluation
(24)
Projets
29
24%
Arbitrage
3
67% / 33%
En retard
6
21%
Gratuit
3
Développeur 3
Évaluation
(345)
Projets
466
52%
Arbitrage
22
50% / 27%
En retard
5
1%
Chargé
4
Développeur 4
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
5
Développeur 5
Évaluation
(5)
Projets
8
13%
Arbitrage
4
50% / 25%
En retard
2
25%
Travail
6
Développeur 6
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
7
Développeur 7
Évaluation
(4)
Projets
5
40%
Arbitrage
0
En retard
0
Travail
Commandes similaires
Smithpiper EA 30+ USD
i want to use 4 defualt indicators to create an EA ,BB BAND ,STOCH,HEIKEN ASHI AND PARABOLIC SAR USING TWO TIMEFRAME ON ATTACHED CHART , EXAMPLE OF SELL SETUP ON LOWER TF ,,IF PRICE HAS CROSS 50 LEVEL DOWN ON STOCHASTIC 50,3,3 AND PARABOLIC SAR HAS FORMED RESISTANCE ABOVE PRICE HEIKEN ASHI HAS TURN RED AND FINALY PRICE HAS CROSS BB BAND 50 MIDDLE LINE A SETUP IS FORMED HIGHER TIME FRAME WILL BE USE FOR FILTER FILTER
Bling Ultimate Sniper Robot Rules the robot should have - 1. Automatic stop loss, take profit and the stop loss should trail with an approach to Tp. 2. Always risk 10% of my account on every trade, with a 1:5 risk reward ratio. 3. The bot should have Mobile, IOS and Mac and Laptop versions. 4. The bot should trade indexes such XAU/USD, GBP/USD, US TECH (Nasdaq), EUR/USD, US30, BTC/USD and GBP/USD. 5. This is robot
I have an algo that is running on ProRealTime, they have their own language. It is a simple strategy with 5 conditions + SL/TP settings, very basic. I need someone that can convert or just create a functional MT5 algo (EA) from these conditions for me, if you do a good job I have around 10+ more algos that need to be transferred to MT5
Dear Developers, I would have a very simple request. I have a ML model developed in Python for EURUSD daily trading. I would like to backtest it in Meta Trader 5 using the Strategy Tester tool. For that I would need an Expert Advisor program. The input would be a csv file that contains two columns: - dates (going back for a few years on a daily basis) - trading signal (it can have only 2 values, either 1: Buy, or -1
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader 1. The Trading View indicator code needs to be converted into and adapted for Ninja Trader 8 2. An indicator and Automated Trading Strategy needs to be developed. 3. Any parts of the Trading View Indicator that can't be replicated needs to be discussed with me and agreed before excluding. (there should not be any) 4. Trailing stop and
1. The Trading View indicator code needs to be converted into and adapted for Ninja Trader 8 2. An indicator and Automated Trading Strategy needs to be developed. 3. Any parts of the Trading View Indicator that can't be replicated needs to be discussed with me and agreed before excluding. (there should not be any) 4. Trailing stop and Trailing Draw Down options need to be implemented 5. Risk needs to be in % of
Create mt4 ea 50+ USD
To convert the provided MT4 indicator script into an Expert Advisor (EA) and implement prompt functionality for user input, we need to modify the code to handle external parameters and provide a user-friendly interface. Below is the EA code that incorporates prompts for user inputs
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea
Hi Developer, I would like to create the Scalping EA based for Mt4 on the investing.com data https://www.investing.com/currencies/eur-usd-technical EA have timing to adjust time to trade. follow the broker time. From starting time to end time EA have a adjustable Lot size (0.01 incremental to 0.01) EA have a adjustable TP (1pip to 100pip incremental 1pip) EA have a adjustable SL (1pip to 100pip incremental 1pip) EA
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader, I wanted this indicator in NT bcs I chart in NT, and if the indicator could also have been an automated strategy even better. Please confirm that it will be an indicator and Automated Trading Strategy

Informations sur le projet

Budget
30 - 50 USD
TVA (19%): 5.7 - 9.5 USD
Total: 36 - 59.5 USD
Pour le développeur
27 - 45 USD

Client

(1)
Commandes passées2
Nombre d'arbitrages0