EA to limit what trades can be executed

MQL5 Experten

Auftrag beendet

Ausführungszeit 2 Tage
Bewertung des Kunden
Great developer, asked lots of questions until it was clear what needed to be done, completed job within budget and ahead of schedule.
Bewertung des Entwicklers
Good and calm customer, knows exactly what he wants and available to clarify details

Spezifikation

Hello,

This EA will be sort of a gatekeep or a type of guardrail for an account that sends signals to others accounts.

It will (1) limit the direction that trades are allowed to be opened and (2) limit the total number of lots (market and pending) that are allowed to be opened.


More detail:

  • A text and and accompanying dropdown for each of the 7 major USD pairs (EURUSD, GBPUSD, AUDUSD, NZDUSD, USDCAD, USDJPY, USDCHF)
    • The dropdown will have 4 choices: buy, sell, both and neither.  These will allow trades in that direction
      • If buy is selected for a pair (USDCAD for example), then sell orders will be closed by the EA if opened.  
      • If Sell is selected, then buy orders will be closed by the EA if opened.  
      • If Both are selected then the EA won't do anything.  
      • If Neither is selected then any orders on that pair will be closed by the EA.

  • Limits the total number of lots that are in OPEN orders at a given time.  
    • This needs to be in increments of .01 and I don't think there needs to be an upper limit.  
    • If the limit is .05 and there are .04 lots open and an order of .02 is added, then that .02 order should be closed
      • however, if the market order is changed from .02 to .01 then it is not closed by the EA.  
    • If the limit is .05 and there are .05 lots running and the amount of lots for open orders is reduced to .04, then .01 lots will be closed.  It should close the most recent trades that have been opened to satisfy this until complete

  • Limits the total number of lots that are in PENDING orders at a given time .  
    • This needs to be in increments of .01 and I don't think there needs to be an upper limit.  
    • If the limit is .05 and there are .04 lots pending and an order of .02 is added, then that .02 order should be closed.
      • however, if the pending order is changed from .02 to .01 then it is not closed by the EA.
    • If the limit is .05 and there are .05 lots running and the amount of lots for pending orders is reduced to .04, then .01 lots will be closed.  It should close the most recent trades that have been opened to satisfy this until complete

I don't need errors or popups but I would also need logging done to the MT4 journal section or something like that if possible.  This way I can find out if an order was closed due to not allowing enough open lots and other things like that.


I've done a mockup graphic of what the interface would look like along with some logic that might explain what I think it might look like.


Once it's completed I'd like to perform some tests to ensure that it works satisfactory.

Dateien:

PNG
mql5.png
86.4 Kb

Bewerbungen

1
Entwickler 1
Bewertung
(131)
Projekte
152
22%
Schlichtung
5
0% / 60%
Frist nicht eingehalten
4
3%
Überlastet
2
Entwickler 2
Bewertung
(5)
Projekte
1
100%
Schlichtung
4
0% / 75%
Frist nicht eingehalten
0
Arbeitet
3
Entwickler 3
Bewertung
(45)
Projekte
74
49%
Schlichtung
1
0% / 0%
Frist nicht eingehalten
1
1%
Frei
Ähnliche Aufträge
Hi, i want to create EA that using martingale and hedge system working on metatrader 4 and has some options to be manually changed in the bot options i need expert in this strategy to do this job note that strategy is very simple no indicator needed unless moving average
Hi there, I have an MT5 EA with its source code that I would like to convert to MT4 and enhance with additional features. Currently, the EA functions as a cost-averaging and martingale EA. When I want to trade only buy or only sell, I place the EA on one chart. To trade both buy and sell, I place the EA on two charts. Each leg (buy and sell) operates independently with its own parameters. The EA does not use any
looking for someone to create an EA based on the OHLC of the last x candles, calculate lot size and place limit and stop orders with partial close. some other features
I have one table (Google Sheets) in my Google account. I need the MQL5 EA to be able to read this table and write to it. Please clarify immediately: can MQL5 EA access my table with my Google login and password or do I need to create some kind of service account
I would like a trading robot / Expert Advisor that simply operates on two basic trading view indicators to enter trades. Everything happens on the 1 minute time frame for this robot. Make the settings of both indicators full customization enabled from my end and also the risk percentage must be adjustable from my end but the risk-to-reward ratio must be fixed to 1:1.5. The scalping robot must operate based on two
I require an English speaking programmer to create the following robot: Brief overview: The program primarily operates just after the open of a new candle on the chart it is attached to. On new candle opening, previous candles over a user defined period are checked. If the number of candles closing with a price rise equal or exceed a given number, the market is considered “Overbought” and the program opens a buy or
Ezeana 40+ USD
i would like to have high frequency trading strategy bot that opens and close multiple trades in short calculated period of time . the expert adviser should be able to full run automatically on its own with 99% winning rate
i need a custom indicator in mql5 syntax with arrows to point when to buy or sell at time frames M5 and M15. the bellow settings and criteria look into higher time frames to confirm entries. I need extra string to add symbols: input string symbol2 = "DXY"; input string symbol3 = "US10Y"; i have made a very basic sketch on chatgpt but it needs professional code work. Indicators and Settings Used: Commodity Channel
The goal of this project is to catch positions which are moving in the right direction, while locking / hedging the ones that do not. Positions are only opened when price has been moving according to the predominant trend, and wins are used to buy down existing locked positions as required. Please see the attached files for full explanation of the requirements and anticipated solution
I have two not very sophisticated bots that need to be converted from python to MQL5. The bots are very similar, they use 99% of the same methodology, the only difference being that one is a trend-following bot, and the other is a mean reversion bot. I need the parameters to be at the top of the script so that they can be easily changed and optimised. The entire codebase is already done in python (sl,tp, trailing

Projektdetails

Budget
30 - 50 USD
Für die Entwickler
27 - 45 USD