EA - Sequence of Orders

MQL5 专家 外汇

指定

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

附加的文件:

反馈

1
开发者 1
等级
(138)
项目
199
80%
仲裁
17
29% / 47%
逾期
10
5%
工作中
2
开发者 2
等级
(45)
项目
67
45%
仲裁
3
0% / 100%
逾期
0
空闲
3
开发者 3
等级
(50)
项目
56
7%
仲裁
18
17% / 39%
逾期
3
5%
繁忙
4
开发者 4
等级
(2402)
项目
3016
65%
仲裁
77
47% / 14%
逾期
340
11%
工作中
5
开发者 5
等级
(566)
项目
639
41%
仲裁
21
57% / 29%
逾期
45
7%
已载入
6
开发者 6
等级
(37)
项目
40
25%
仲裁
20
15% / 75%
逾期
8
20%
已载入
7
开发者 7
等级
项目
0
0%
仲裁
0
逾期
0
空闲
8
开发者 8
等级
(27)
项目
27
26%
仲裁
2
0% / 50%
逾期
1
4%
空闲
9
开发者 9
等级
(11)
项目
13
38%
仲裁
0
逾期
2
15%
空闲
相似订单
Hello, I am looking for a developer to help me convert my mta4 script into trading and make it work perfectly your expertise is highly needed for this project kindly reach out and let's proceed thanks
Hello, I'm looking forward to have this EA below written. Nothing more, nothing less Conditions: If previous 1 minute candle close is higher than the current 1 minute candle opening then buy 1 lots of XAUUSD. If previous 1 minute candle close is lower than the current 1 minute candle opening then sell 1 lots of XAUUSD. If previous 1 minute candle close is higher than the current 1 minute candle opening by at least 10
Szukam programisty, który mógłby opracować dla mnie automatyczną kopiarkę i sygnał Discord MT5 (lub Tradingviev/MT5) Poniżej znajdują się parametry: 1. Odczytuj i kopiuj wiadomości sygnałów transakcyjnych wysyłane w określonych kanałach telegramów w różnych formatach do MT5. Wejście,/TP1/2/3 zgodnie z sygnałami. Prefiks i sufiks brokera muszą być uwzględnione. Musisz być w stanie operować kwotami w walutach
Develop ctrader 30+ USD
Hi mate, i would like to make Tensorflow.NET dlls (including Keras.NET, NumSharp etc ) from https://scisharp.github.io/SciSharp compatible with cTrader, so i can develop algos inside cTrader. Can you help? Cheers
I am looking an Mt4 EA which can place multiple sell stops and buy stops with given distance (Pips) and lot size. EA should place multiple entries with same lot size or variable upto the given values
Statistical Trading EA 30 - 1000 USD
Hi guys First of all I switch to german (number 1 requirement): Ich und ein Freund haben eine Trading Strategie entwickelt, die auf statistischen Daten aus den letzten 10 Jahren basiert. Wir haben total 3 Trading Setups, die unabhängig voneinander tradebar sind. Wir suchen nach einem erfahrenen Python Entwickler, der uns die Strategie umsetzt. Was wir von einem Entwickler benötigen: Viele Jahre Python Erfahrung
Сетка ордеров. Всего на валютную пару предусмотрено будет 300(сменное значение) ордеров с разным шагом в пунктах между ними. 1. 0-100 ордеров с шагом в 1 пункт 2. 100-150 ордеров с шагом в 3 пункта 3. 150-200 ордеров с шагом в 5 пункта 4. 200-250 ордеров с шагом в 7 пункта 5. 250-300 ордеров с шагом в 10 пункта см.рис.6 Тейк профит на каждую сделку установить в 100 п.(Сменное значение) Все выше значения могут
Hello traders and developers, I'm a software developer myself I have been learning mql5 and creating ea's with various strategies since last month but most of them are unprofitable and some of them are inconsistent in giving profits, what I'm looking for right now is as follows, A profitable scalping ea which should take trades based on M5 or M1 timeframe since i like scalping in Minute timeframe i only want scalping
I have mt4 indicator that is working perfectly but I want to convert it into tradingview strategy. Can I get an expert to get this done for me? I want the strategy to work perfectly on Tradingview
I want an EA that always trades. Can buy only, sell only, or buy and sell at the same time depending on my selection. It has 5 levels of grid settings. Each grid just contiues onto the next. Not a new grid each time, the settings to continue gridding changes. I have attached an excel file with examples which should be quite self explanatory. INPUTS Initial (first trade) input double StartLot = 0.1; // Starting

项目信息

预算
100+ USD
VAT (23%): 23 USD
总计: 123 USD
开发人员
90 USD
截止日期
 1  5 天