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
Experienced Trading Software Developer Needed – Multi-Platform Development Hello! I'm looking for an experienced developer to create a custom trading indicator and convert it into an automated trading bot for the following platforms: MT5 NinjaTrader 8 Quantower cTrader The plan is to develop the same indicator and trading bot for all four platforms, one after another. Project requirements: Custom trading indicator
un écosystème logiciel asynchrone multi-comptes dopé par un module de supervision par Intelligence Artificielle (Guardian AI). La solution assure le pilotage automatisé, le filtrage de marché en temps réel et le contrôle des risques pour 20+ comptes MetaTrader 4/5 (via MetaApi) et Deriv sur VPS Equinix NY4. vous aurez plus de detail dans les échanges
Order flow 30+ USD
Hi! I need an experience developer with order flow, volume delta, and futures scalping, and I wanted to ask you a few questions. Have you personally developed and tested fast-paced strategies for Gold Futures (GC), particularly those that enter during short-term price impulses and scale into positions as momentum builds? From your experience, what indicators or signals help you determine whether an impulse has enough
I am looking for an experienced MQL5 developer for the first milestone of a larger MetaTrader 5 project: a multi-symbol, multi-timeframe signal scanner with alerts. This milestone covers indicator integration only. There is no order placement or trade management at any stage. Scope of this milestone Read outputs from three custom indicators (provided as compiled files after selection and NDA) reliably via iCustom and
RA_BOT 2.0 36+ USD
//@version=4 study(title="UT Bot Alerts", overlay = true) // Inputs a = input(1, title = "Key Vaule. 'This changes the sensitivity'") c = input(10, title = "ATR Period") h = input(false, title = "Signals from Heikin Ashi Candles") xATR = atr(c) nLoss = a * xATR src = h ? security(heikinashi(syminfo.tickerid), timeframe.period, close, lookahead = false) : close xATRTrailingStop = 0.0 xATRTrailingStop := iff(src >
Andrew 50 - 200 USD
Hello, I am from Tanzania. I am looking for a professional MQL5 programmer from Tanzania who can help me develop and improve my automated MT5 trading robot. The project is called SMC XAVAGE AI, and it trades XAUUSD (Gold). I would like to discuss the project with you. Are you based in Tanzania? Would it be possible to arrange a meeting or a call? Thank you
Metafix 50 - 200 USD
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
1. Platform: MT4 The EA required is not linked, neither depending on trading strategy nor trading signals nor indicators. 2. Initial order is a pending order (buy stop/ sell stop) and it is created manually. It is open for a specified symbol (pair) at a specified price with a specified S/L 3. Example: buy stop 0.1 lot GBPUSD @ 1.3085 WITH S/L @1.3075 Once target price is reached, pending order will
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
Salman serhal 30 - 100 USD
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement

Project information

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