Reversing copy EA that counters initial trades of an EA - on the same terminal

MQL5 Experts

Job finished

Execution time 10 days
Feedback from employee
Thanks

Specification

Hello and thanks already for your interest into this project !

I use a grid EA - referred hreafter as "original EA", which is quite successful but has some drawdown ad has a tendancy to trade against the trend. The EA requested for development will be used on a case by case basis when I fell the trend on a pair is too strong and hence, that it would be beneficial to counter the original EA (to reduce drawdown and in an attempt to generate some profits).

I would like to order an EA that opens an opposite trade when the original EA places a trade. I will name this EA (requested for development) as the "reversing EA".

The reversing EA has nothing more to do than copying the trades each time the initial EA places a market order (it does not place pending orders). It hsould be working on VPS offered by MQL.

The reversing EA will be attached to the chart of the pair it can trades, on the same terminal as the original EA (no need to copy accross mulitple terminal).


The original EA manages only the pair of the chart it is attached. Each pair has its own magic.  So we get one grid per pair, with one magic. For 2 grids, we will have 2 pairs, 2 charts, 2 magics etc. 

The first trade of the grid of the original EA has a specific comment (initial position) and the successive grid orders from the original EA have each the same comment (grid Position), which differs from the comment of the first trade . The reversing EA should be able to reverse-copy either of the initial trade order and the trades from the grid made by the initial EA, based on the searching of the comment specific to the 1st order  ("initial position") or on subsequent orders ("grid position").

The original EA may be long and short at the same time on the same pair, with same magic. The original EA cannot open more than 2 grids with the same magic on the same pair (one long, one short).

ATTENTION

In the case the original EA is already long and short, the reversing EA should not copy trade. The reversing EA should check that it does not copy trade as long it finds already 2 orders on the opposite  side (one long and one short per pair). The reversing EA shall incorporate this parameter to prevent the risk of having 2 grids running on the same side - or to prevent the risk of creating a loop, where the reversing EA would open opposite orders to its own trades.


Input parameters:

Permitted Reversed Copy Sides : None / Both Sides / Long / Short - the side of orders that the reversing EA is authorised to place. If set to Long, then reversing EA can only enter into long deals - which would then mean that the original EA is short. 

fixed lot  : TRUE/FALSE - if FALSE, then input "Lot ratio" applies

FIxed lot: fixed lot size of trades made by the reversing EA. Applies only if "FIxed Lot" set to TRUE.

Lot ratio : number - Applies only if "FIxed Lot" set to FALSE. it is calculated from the lot size of the original EA, the ratio is used as multiplier. For a lot size of 1 lot placed by the original EA and a lot ratio of 0.01 then the reversing EA should place a trade for 0.01 lot and - if input is 10, then the reversing EA should open a 10 lot order). The lot size are not to be rounded.

Comment from original to Copy - will select trades to be copied from original EA (per comment), so that only the initial trade is copied when the input "initial Position" is made - or any of the grid order from the original EA if "Grid Position" is input. 

Magic from original EA to copy: Magic from the initial EA that the reversing EA should be looking for in open orders to reverse copy. ALthough the reversing EA should only be able to place trades on pair it is attached, I would like this input as additional protection to prevent manipulation errors

Comment to be copied: Comment that the reversing EA should put in orders it opens. 

Magic to be copied: Magic of the trade opened by the reversing EA -may differ from the Magic of the Initial EA. 

Take Profit: when reversing EA instructs a market order, the order should have an initial TP - set as pips distance from the obtained market price. 

Pause: expressed in milliseconds - to reduce the overload of the VPS, the EA should check orders every X milliseconds - 500 milliseconds by default. 


Responded

1
Developer 1
Rating
(45)
Projects
46
24%
Arbitration
34
9% / 85%
Overdue
10
22%
Free
2
Developer 2
Rating
(64)
Projects
68
25%
Arbitration
12
42% / 42%
Overdue
4
6%
Free
3
Developer 3
Rating
(52)
Projects
58
59%
Arbitration
4
0% / 25%
Overdue
1
2%
Free
Similar orders
I am looking for an experienced MQL5/MT5 developer to develop a custom Expert Advisor based on a complete technical architecture already prepared by the client. This is not a request to design a trading strategy from scratch . The strategy architecture, entry/exit concepts, filters, risk-management requirements and testing requirements are already documented. The main responsibility will be MQL5 development
EAs 100+ USD
To apply, you must already have your EA running on an active MT5 trading account connected to the market. The account must have genuine trading history that can be independently reviewed and verified. EA Requirements 1. Prop-Firm Compatible Risk Management - The EA must include daily and overall drawdown protection. - Required inputs: "MaxDailyLoss = 5%" "MaxTotalDrawdown = 10%" - Once either limit is
Strategy 40 - 60 USD
yo i have a strategy i would really like to turn into a signal bot basically please this is very technical and serious to me the strategy needs more time 1 time frame and the bot most be 100% accurate
Ready to use bot 100+ USD
seller must provide the following to be considered... i will answer to all who fit this description, and can purchase more than 1 EA... - brief strategy description - overall EA expectancy - 1 week limited trial version, with whatever settings you consider best (can be blocked on demo, i don't really care) - investor password from a reputable broker (if history is available... live / demo, same thing, doesn't really
I want you to develop a professional HFT trading robot for MT5/MQL5 , initially focused on XAUUSD . The robot should be designed for high-speed tick-level trading , analyzing real-time bid/ask movement, spread, tick velocity, momentum, volatility, price acceleration and short-term market microstructure to identify very short-term opportunities. The core strategy should be capable of opening 5–10+ positions in a
can you help me use a Tickblaze Algo NRBO on the NT platform? I have it somewhat set up, but I have other questions about running it & knowing how to operate it in NT. Thank you if anyone have experience in this kindly bib and let do it asap
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

Project information

Budget
30+ USD
Deadline
from 2 to 4 day(s)