EA - Sequence of Orders

MQL5 Esperti Forex

Lavoro terminato

Tempo di esecuzione 51 giorni
Feedback del cliente
developer has lots of expertise and made everything as requested
Feedback del dipendente
very nice and kind thank you +++++

Specifiche

MQL5 EA - One sequence of Orders from Order1 up to Order10. Restart at next Gridline.

 

The EA main goal is to have a sequence of Orders from 1 up to 10. Example: If price of Order1 = Order3, Order3 can be open only after price hit Order2 first; the Order2 will only open after Order1 is already open, the Order3 will only open after Order2 is already open, etc.

The restart of the EA/sequence will occur only after the price hit next gridline, instead of at the end of the sequence.

A secondary goal is to try use the same EA to hedge in two different brokers (in theory). Example: if two EAs have same specs on different brokers (broker2 is hedge), Order1_Buy on Broker1 and Order1_Sell on Broker2, theoretically both will open orders at same time when price hit same gridline if the Sequence and GRID have the same specs on both brokers.

Example to clarify main concept of some sequences (not precise simulation to use as reference). Sequences, some profitable and others not profitable, restarting when price touches next gridline:

EA concept

 INPUT MENU SETTINGS

 

[Checkbox] GLOBAL EA RESTART: [ ]

[Dropdown] Trigger: (all TPs,SLs,Trail / any TP,SL,Trail)

(after price hit all TPs,SLs or Trail,( in theory all orders are closed) restart EA / if price hit any TP,SL or Trail, close all Orders and restart EA)

 

GRID

[Input Field] Reference Price: (default = price when EA opened first time)

[Input Field] Gridlines Distance in Pips from Reference Price (X pips): 50

 

SEQUENCE SETTINGS

[input string] PipStep Order  1>2>3>4>5>6 >7>8>9>10        ="+0000/+0100/+0200/+0300/+0400/-0100/-0200/-0300/-400/-500";

[input string] Lot_Size Order 1>2>3>4>5>6 >7>8>9>10        ="00.01/00.02/00.03/00.04/00.05/00.06/00.07/00.08/00.09/00.10";

[input string] Trade_TP Order 1>2>3>4>5>6>7>8>9>10         ="0050/0100/0150/0200/0250/0300/0350/0400/0450/0500";

[input string] Trade_SL Order 1>2>3>4>5>6>7>8>9>10        ="0060/0110/0160/0210/0260/0310/0360/0410/0460/0510";

[input string] Trailing Order 1>2>3>4>5>6>7>8>9>10         ="0052/0062/0072/0082/0092/0102/0112/0122/0132/0142";

 

ORDERS TYPE (-1=None, 0=Buy, 1=Sell)

[Input Field] Order1 type = 0;

[Input Field] Order2 type = 0;

[Input Field] Order3 type = 0;

[Input Field] Order4 type = 0;

[Input Field] Order5 type = 0;

[Input Field] Order6 type = 0;

[Input Field] Order7 type = 0;

[Input Field] Order8 type = 0;

[Input Field] Order9 type = 0;

[Input Field] Order10 type = 0;

 

VIRTUAL ORDERS (if blank = Real)

[Checkbox] Order1 virtual = [ ];

[Checkbox] Order2 virtual = [ ];

[Checkbox] Order3 virtual = [ ];

[Checkbox] Order4 virtual = [ ];

[Checkbox] Order5 virtual = [ ];

[Checkbox] Order6 virtual = [ ];

[Checkbox] Order7 virtual = [ ];

[Checkbox] Order8 virtual = [ ];

[Checkbox] Order9 virtual = [ ];

[Checkbox] Order10 virtual = [ ]

 

[Input Field] Magic Number = 123456

[Input Field] Slippage (pips) = (0 = off)

[Input Field] Delay between Orders (seconds) = 0

 

NOTES:

GLOBAL RESTART - if unchecked, each order will open only once and EA stops opening more orders after Order10 (if price reach Order10).

SEQUENCE SETTINGS- orders must be open in order in sequence from 1 to 10.

SEQUENCE SETTINGS- all PipStep Orders 1/2/3/4/5/6/7/8/9/10 positions must always have the same Gridline as the price reference (new/same Gridline at each restart).

example1. EA only open Order3 after Order2 has opened and after price gone up or down (+/-) X pips from Gridline reference (Order4 after Order3, etc.).

example2. if (Order3 PipStep = Order1 PipStep) but different than Order2 PipStep, Order3 only open after price hit Order2 PipStep, which was after Order1 PipStep.

VIRTUAL ORDERS - when opening next order, EA must consider any order checked as virtual as if it is a real order (ex. if Order2 is Virtual, EA open Order3 only after price hit PipStep Order2 position first (as if Order2 was real)).

VIRTUAL ORDERS - if GLOBAL RESTART and VIRTUAL ORDERS are both checked, and if trigger any (TP,SL,Trail)>0 is chosen in GLOBAL RESTART, any TP,SL or Trail of any Virtual Order will trigger the GLOBAL RESTART as if it was a real order.

 

Trigger to open Order1: usually Order1 PipStep = 0000 so when EA (re)Start and after price hit next up or down Gridline, the EA will open Order1.

Trigger to open Order2-10: previous order is already open and price hit each PipStep distance from Gridline reference.

Trigger to close orders: each TP,SL,Trail.

The TP,SL,Trail will not be sent to broker when order is opened, instead EA must close automatically each order when the price hit each TP,SL or Trail.

EA must work with 4 and 5 digits Pairs.

When I use EA to hedge in two different brokers, if two EAs have same specs on different brokers (one is hedge), Order1_Buy on Broker1 and Order1_Sell on Broker2, theoretically both will open at same time when price hit same gridline.


EA must work on demo, real accounts and strategy tester. I need the .mql5 source script file not only the .exe

Con risposta

1
Sviluppatore 1
Valutazioni
(152)
Progetti
228
80%
Arbitraggio
19
32% / 42%
In ritardo
11
5%
Gratuito
Pubblicati: 24 articoli, 1882 codici
2
Sviluppatore 2
Valutazioni
(54)
Progetti
86
41%
Arbitraggio
3
0% / 100%
In ritardo
3
3%
In elaborazione
3
Sviluppatore 3
Valutazioni
(72)
Progetti
77
5%
Arbitraggio
33
15% / 36%
In ritardo
6
8%
In elaborazione
4
Sviluppatore 4
Valutazioni
(2610)
Progetti
3302
67%
Arbitraggio
77
48% / 14%
In ritardo
342
10%
Gratuito
Pubblicati: 1 codice
5
Sviluppatore 5
Valutazioni
(568)
Progetti
641
41%
Arbitraggio
23
52% / 30%
In ritardo
46
7%
In elaborazione
6
Sviluppatore 6
Valutazioni
(45)
Progetti
46
24%
Arbitraggio
23
13% / 74%
In ritardo
10
22%
In elaborazione
7
Sviluppatore 7
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 4 codici
8
Sviluppatore 8
Valutazioni
(27)
Progetti
27
26%
Arbitraggio
2
0% / 50%
In ritardo
1
4%
Gratuito
9
Sviluppatore 9
Valutazioni
(14)
Progetti
20
25%
Arbitraggio
0
In ritardo
2
10%
Gratuito
Pubblicati: 3 codici
Ordini simili
there is a indicator in trading view i want it to be ea -----------------------order block detector luxalgo------------------------------------- with stop lose and take profit optimzie it to be profitble and trail stop i want it to scan higher time frame and enter in lower time frame and then use trail stop also i want 3 methods grid+martingale regular and double the position every time it lose but it will save the
I am looking to develop a strategy for ORB Breakout.. I would like to use the 3 options in the attached for entering a trade.. ORB High Break(BUY) and ORB Low Break(SELL).. Once the strategy enters the trade.. i need the following to manage the trade.. Provide Trade management options using the Auto Breakeven with offset Function, Trail Profit Target/Stop Loss via - Candle by Candle High/Low or EMA Trail method or
I have an existing MetaTrader Expert Advisor (EA) that is already coded and functional, but I’m looking for a professional to assist with the following tasks: 1. Debugging: Review and fix any coding issues, logic errors, or unexpected behavior. Ensure trade execution, money management, and signal logic function as intended. Verify compatibility and stability across different brokers and symbols. 2. Strategy Testing /
🔹 1. General Logic The EA works across three timeframes: H4 , M30 , and M15 . H4 is the high timeframe and defines market bias. M30 is the medium timeframe for confirmation. M15 is the entry timeframe where trades are executed. 🔹 2. H4 Logic (Zone Creation & Management) 2.1 Pattern Detection Check on every H4 candle close for specific candle patterns: Regular Engulfing Buy (REGULAR_EG_BUY): Two candles: First =
Project goal: Creation of an Expert Advisor (EA) that opens only one BUY trade per day during the US trading session (New York hours). The main idea is to catch a strong breakout to the upside, when the price breaks out from a short range or consolidation formed before the US session. Main objective: The EA should focus on one precise, high-quality BUY entry per day. It must trade only when a clear bullish breakout
//| Function to print info | Initial Deposit Withdrawals Deposits Reset to start over if the account balance drops to $0.00 string InitialDeposit_Str = DoubleToString (return_deposit(), 2 ) + " " + Currency_Str; In MT4, this leads nowhere.( string Withdrawals_Str = "0.00 " + Currency_Str; ) string Deposits_Str = DoubleToString (total_deposits(), 2 ) + " " + Currency_Str; This seems to only be
Développeur 50+ USD
on part d'une stratégie qui se concentre sur la session américaine c'est a dire identifier et racer le plus haut et le plus bas de la bougie qui démarre a 15h30 heure de paris sur l'unité de temps 15min aussi on utilisera deux moyenne mobile exponentiel la EMA (50 et 20) réglé sur une plage horaire fixe 5min et un autre indicateur le supertrende (supertendance) tradingview elle réglé sur la plage horaire fixe de 1h
I need a Pine Script v5 developer who has real experience working with market structure logic (MSS / BOS / continuation sequences). The strategy must: Detect structure shifts internally (no external indicators) Track structure phase: Anchor → Impulse → Pullback → Continuation Use EMA 21 as trend validation Place SL at the pullback and allow configurable TP ratios Include an optional session filter Be delivered as a
i want you to convert my Trading view indicator into mt5 EA bot . This bot will trade on heikin ashi candles only. This is my chandelier exit indicator which u will convert to a mt5 bot
//| Function to print info | Initial Deposit Withdrawals Deposits Reset to start over if the account balance drops to $0.00 string InitialDeposit_Str = DoubleToString (return_deposit(), 2 ) + " " + Currency_Str; In MT4, this leads nowhere.( string Withdrawals_Str = "0.00 " + Currency_Str; ) string Deposits_Str = DoubleToString (total_deposits(), 2 ) + " " + Currency_Str; This seems to only be

Informazioni sul progetto

Budget
100+ USD
IVA (23%): 23 USD
Totale: 123 USD
Per lo sviluppatore
90 USD
Scadenze
da 1 a 5 giorno(i)