EA to limit what trades can be executed

MQL5 Esperti

Lavoro terminato

Tempo di esecuzione 2 giorni
Feedback del cliente
Great developer, asked lots of questions until it was clear what needed to be done, completed job within budget and ahead of schedule.
Feedback del dipendente
Good and calm customer, knows exactly what he wants and available to clarify details

Specifiche

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.

File:

PNG
mql5.png
86.4 Kb

Con risposta

1
Sviluppatore 1
Valutazioni
(137)
Progetti
162
22%
Arbitraggio
7
29% / 43%
In ritardo
4
2%
Occupato
2
Sviluppatore 2
Valutazioni
(5)
Progetti
1
100%
Arbitraggio
4
0% / 75%
In ritardo
0
In elaborazione
3
Sviluppatore 3
Valutazioni
(46)
Progetti
75
49%
Arbitraggio
1
0% / 0%
In ritardo
1
1%
Gratuito
Ordini simili
I want an Expert advisor that takes trade on price crossing the upper limit or lower limit of the marked range. It needs to mark the range on daily basis and place a buy and sell order simultaneously Buy Condition Price crosses the upper level of marked range Sell condition Price crosses the lower level of marked range Re-Entry Condition i will tell the programmer In that Expert Advisor I want to add some below
Hey I am looking for someone to help with the testing of my 1000+ robots, you will be asked to always run testing for 30 expert advisors within 24/7 and you will have to provide results from the testing of each EA, let me know if you can help thanks
Check it 30 - 100 USD
please check the file before the bid, i need a developer who is sure to be work with this type of job, check the file attached before apply to this job, then we can discuss more about requirements. please apply only if you can do it, i don't want leave bad feedbacks
Hello, I need an EA or indicator for MT4 that can calculate the difference in pips between the closing price of the first 5 second candle and my actual trade entry price on the opened MT4 trade . EXAMPLE: BUY TRADE: When I open a EURUSD buy trade at 14:30:07 with a fill at 1.0860 and the price at 14:30:05 was at 1.0855 then the script should show me -5.0 pips on the MT4 chart. SELL TRADE: When I open a EURUSD sell
Hi, I'm looking for a coder to develop an automated trading robot for the MetaTrader 5 platform, capable of executing orders according to a defined strategy. The robot must allow for the configuration of: Distances between orders Lot sizes Levels of profits and losses (in pips and in currency) Recording performances in 2 dashboards Manual closure of all positions The Expert Advisor must successfully pass the MQL5
Telegram To MT5 EA 40 - 50 USD
I'm in need of Telegram to MT5 EA copier. The copier should be able to open telesignals directly on MT5 terminal. Message me if you can create the EA as described. Regards
Hey I am looking for someone to help with the testing of my 1000+ robots, you will be asked to always run testing for 30 expert advisors within 24/7 and you will have to provide results from the testing of each EA, let me know if you can help thanks
I need an expert to test robots 24/7 and the best ones come to real servers to work with real money. If we have good success, I increase the risk to 10-20% and the capital. a) 30x Forex robot installation. b) 30x Forex robot settings adjustment. c) 30x Forex robot is tested 24/7 for success. d) 30x Forex robot is provided by the client. e) 30x Forex robot is tested for functions to see if it works on MT4 or MT5. f)
Hello, how are you? I would like to create a robot (another version of a robot I already have) I currently have the source code but would like to have another robot that belongs to me but with different settings, if I provide you with the source code with all the settings are you able to remake me another robot with modifications? and if so what would be your price
EA indicador Velas 30 - 50 USD
Necesito crear un EA basado en un indicador que da señal de entrada y que tenga los siguientes parametros 1. Entrar Buy o Sell en la siguiente vela de la señal dependiendo la Flecha 2. El TP para BUY sera apenas cierre en vela verde sin importar los pips que saque de ganancias puede ser que sea 1 pip o 10 o incluso salir en perdida, no importa 2. El TP para Sell sera apenas cierre en vela roja sin importar los pips

Informazioni sul progetto

Budget
30 - 50 USD
Per lo sviluppatore
27 - 45 USD