Simple Layering EA that can copy a original entry lot size, TP, SL

MQL4 Experts Forex

Job finished

Execution time 4 days
Feedback from employee
thanks for the job, let me know if found any error in future

Specification

I am seeking a programmer to develop a **Layering EA** for MT4 that automatically places additional trades above and below the original entry position.

The EA default should have the following function:

**Copy Stop Loss from the original trade ** - Any changes made to the Stop Loss on a single working order will be applied to all trades (both working and pending).
**Copy Take Profit from the original trade ** - Any changes made to the Take Profit on a single working order will be applied to all trades (both working and pending).
The EA should be able to start layering trades as soon as I entered, do not necessary needs TP or SL filled. I can edit any single working order there after and it can copy to all the trades (both working and pending)

While in the settings, these are the following
1. **Copy Lot Size from the original trade? (Yes/No)** - If "Yes," trades placed will be the same as the original entry.
2. **Double Down Lot Size from the original trade? (Yes/No)** - If "Yes," trades placed closer to the Take Profit will replicate the same lot size as the original trade, while trades closer to the Stop Loss will double the lot size.
3. **Custom Lot Size Nearer To TP? ** (if "No" is selected for both options above).
4. **Custom Lot Size Nearer To SL? ** (if "No" is selected for both options above).
5. **Distance between each layered trade?**.
6. **Cancel all pending orders if the Stop Loss or Take Profit is hit? (Yes/No)**.

### Example Scenario A:

If I initiate a **buy trade** on **XAUUSD** with the following details:

- **Entry**: Long @ 2740.50

- **Stop Loss (SL)**: 2735

- **Take Profit (TP)**: 2745.5

- **Lot Size**: 0.01

- **Distance between layered trades**: 100 pips

The EA will automatically place the following pending orders:

- **Buy Limit orders** at 2739.5, 2738.5, 2737.5, 2736.5, 2735.5

- **Buy Stop orders** at 2741.5, 2742.5, 2743.5, 2744.5

These additional trades can either replicate the original Stop Loss, Take Profit, and Lot Size or use custom settings based on the EA's configuration. Furthermore, the EA will cancel all pending orders if the original trade hits its Stop Loss or Take Profit, depending on the settings.

### Explanation of Point 6 (Double Down Lot Size):

If **Double Down Lot Size** is enabled, the lot sizes will adjust based on the proximity to the Stop Loss or Take Profit. For example:

Assume you have the same **buy trade**:

- **Entry**: Long @ 2740.50

- **SL**: 2735

- **TP**: 2745.5

- **Original Lot Size**: 0.01

The EA will place pending orders as follows:

- Trades closer to the **Take Profit** will maintain the same lot size as the original trade:

- Buy Stop @ 2744.5 with **Lot Size 0.01**

- Buy Stop @ 2743.5 with **Lot Size 0.01**

- Buy Stop @ 2742.5 with **Lot Size 0.01**

- Buy Stop @ 2741.5 with **Lot Size 0.01**

- Original Entry @ 2740.5 with **Lot Size 0.01**

- Buy Limit @ 2739.5 with **Lot Size 0.02**

- Buy Limit @ 2738.5 with **Lot Size 0.02**

- Buy Limit @ 2737.5 with **Lot Size 0.02**

- Buy Limit @ 2736.5 with **Lot Size 0.02**

- Buy Limit @ 2735.5 with **Lot Size 0.02**

In this case, the lot size for the trades closer to the Stop Loss will double.

Responded

1
Developer 1
Rating
(50)
Projects
64
20%
Arbitration
11
27% / 55%
Overdue
5
8%
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
Hello, I need an MQL5 Expert Advisor for MetaTrader 5. STRATEGY: Pair: XAUUSD / EURUSD Timeframe: M5 and M15 (selectable) 1. Wait for a strong rejection wick at Support / Resistance or Supply / Demand zone. 2. Wait for a Fair Value Gap (FVG) in the same direction. 3. Enter on FVG retest with confirmation candle close. 4. Only 1 trade at a time, no martingale, no grid. RISK MANAGEMENT: - Lot: Fixed lot or % Risk
We’re building our team for an upcoming crypto project and are looking for skilled professionals to help us move development forward. We’re especially interested in developers experienced with React.js and Node.js, with Web3 knowledge being a strong advantage. We plan to launch the MVP by the mid of Dec and complete the project by Christmas. Our budget is $20–$30 per hour, depending on experience and skill level
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
Overview: Build an MT5 Expert Advisor that receives webhook alerts from TradingView (RayAlgo indicator) across three timeframes ( H1, M5, M1 ) for XAUUSD and executes a dual-position strategy when all three conditions align, including strict FTMO server-request limits and automated pre-market-close trade closures. 1. Webhook Receiver & Multi-Timeframe State Logic: H1 Bias State: Updates to BULLISH or BEARISH upon
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
Objective: I am looking for an experienced MQL5 quantitative developer to code an Expert Advisor (EA) from scratch based on a fully defined, rule-based strategy, and then rigorously validate, optimize, and stress-test it before I deploy it on a live VPS environment. Note: The exact mathematical rules, indicator names, and chart screenshots will be shared privately with shortlisted candidates. Strategy Overview

Project information

Budget
50+ USD
Deadline
from 1 to 2 day(s)