EA/Script that performs the following - When defined criteria of 'trigger' orders are opened (identified by comments), then up to 3 pending orders will open automatically.

MQL4 专家 脚本

工作已完成

执行时间18 小时
客户反馈
Excellent developer. Very fast and efficient. Exceeded my expectations. I definitely recommend!

指定

Description
-------------
EA/Script that performs the following - When defined criteria of 'trigger' orders are opened (identified by comments), then up to 3 pending orders will open automatically.

Terminology:

Trigger Order = an open order containing a specific value in it Comments 

'OPEN PENDING ORDERS' =  refers to the situation when all the criteria are met and the scripts opens the pending orders 

 

I need the following parameters in the EA. 

Sell/Buy Limit or Sell/Buy Stop? ---------------------------------------- eg. Sell / Buy Stop
Trigger Order Comment  -------------------------------------------------- eg. ANDY
Min Trigger Order Count ------------------------------------------------- eg. 1
When orders 'Trigger Order Count' = 0, delete pending orders? ---- eg. true
Multiplier by highest or lowest lot size -------------------------------- eg. Highest
Pending order 1 distance from Trigger Order ----------------------------- eg. 10
Pending order 1 multiplier ---------------------------------------------- eg. 0.5
Pending order 1 TP distance --------------------------------------------- eg. 20
Pending order 1 SL distance --------------------------------------------- eg. 100
Pending order 2 distance from Trigger Order ----------------------------- eg. 30
Pending order 2 multiplier ---------------------------------------------- eg. 0.75
Pending order 2 TP distance --------------------------------------------- eg. 20
Pending order 2 SL distance --------------------------------------------- eg. 100
Pending order 3 distance from Trigger Order ----------------------------- eg. 60
Pending order 3 multiplier ---------------------------------------------- eg. 1
Pending order 3 TP distance --------------------------------------------- eg. 20
Pending order 3 SL distance --------------------------------------------- eg. 100
MAgic Number ------------------------------------------------------------ eg. 1234 


Note : IF 'Min Trigger Order Count' > 1 THEN currency pair (eg EURUSD) and order type (eg BUY or SELL) must match for all trigger orders for 'OPEN PENDING ORDERS' condition to be met.
Note : IF 'Min Trigger Order Count' > 1 THEN whether the pending order lot size is based on the highest trigger order lot size or the lowest can be configured in the parameters 
Note : To allow pending orders to be deleted manually, 'OPEN PENDING ORDERS' condition will only be active in the 60 seconds after the ticket that triggers 'OPEN PENDING ORDERS' condition is opened.
Note : 'OPEN PENDING ORDERS' condition can not be met if there are 1 or more pending orders already open with magic number from this EA.

 


Example 1 - Demonstrate basic setting

---------


VARIABLES
Sell/Buy Limit or Sell/Buy Stop? ---------------------------------------- eg. Sell / Buy Stop
Trigger Order Comment  -------------------------------------------------- eg. ANDY
Min Trigger Order Count ------------------------------------------------- eg. 1
When orders 'Trigger Order Count' = 0, delete pending orders? ---- eg. true
Multiplier by highest or lowest lot size -------------------------------- eg. Highest
Pending order 1 distance from Trigger Order ----------------------------- eg. 10
Pending order 1 multiplier ---------------------------------------------- eg. 0.5
Pending order 1 TP distance --------------------------------------------- eg. 20
Pending order 1 SL distance --------------------------------------------- eg. 100
Pending order 2 distance from Trigger Order ----------------------------- eg. 30
Pending order 2 multiplier ---------------------------------------------- eg. 0.75
Pending order 2 TP distance --------------------------------------------- eg. 20
Pending order 2 SL distance --------------------------------------------- eg. 100
Pending order 3 distance from Trigger Order ----------------------------- eg. 60
Pending order 3 multiplier ---------------------------------------------- eg. 1
Pending order 3 TP distance --------------------------------------------- eg. 20
Pending order 3 SL distance --------------------------------------------- eg. 100
MAgic Number ------------------------------------------------------------ eg. 1234 

Scenario 1
- 1 LOT EURUSD BUY Order is opened @ 1.30000 with comment = 'ANDY'
- OPEN PENDING ORDERS CONDITION IS MET!
- EA opens 0.5  LOT Pending BUY STOP order opens @ 1.29900, TP = 1.30100, SL = 1.28900
- EA opens 0.75 LOT Pending BUY STOP order opens @ 1.29700, TP = 1.29900, SL = 1.28700
- EA opens 1    LOT Pending BUY STOP order opens @ 1.29400, TP = 1.29600, SL = 1.28400



Example 2.1 - Demonstrate 'Multiplier by highest or lowest lot size' = Lowest
---------

VARIABLES
Sell/Buy Limit or Sell/Buy Stop? ---------------------------------------- eg. Sell / Buy Stop
Trigger Order Comment  -------------------------------------------------- eg. ANDY
Min Trigger Order Count ------------------------------------------------- eg. 2
Multiplier by highest or lowest lot size -------------------------------- eg. Lowest
When orders 'Trigger Order Count' = 0, delete pending orders? ---- eg. true
Pending order 1 distance from Trigger Order ----------------------------- eg. 10
Pending order 1 multiplier ---------------------------------------------- eg. 0.5
Pending order 1 TP distance --------------------------------------------- eg. 20
Pending order 1 SL distance --------------------------------------------- eg. 100
Pending order 2 distance from Trigger Order ----------------------------- eg. 30
Pending order 2 multiplier ---------------------------------------------- eg. 0.75
Pending order 2 TP distance --------------------------------------------- eg. 20
Pending order 2 SL distance --------------------------------------------- eg. 100
Pending order 3 distance from Trigger Order ----------------------------- eg. 0
Pending order 3 multiplier ---------------------------------------------- eg. 0
Pending order 3 TP distance --------------------------------------------- eg. 0
Pending order 3 SL distance --------------------------------------------- eg. 0
MAgic Number ------------------------------------------------------------ eg. 1234 

Scenario 2.1
- 2 LOT EURUSD BUY Order is opened @ 1.30000 with comment = 'ANDY'
- OPEN PENDING ORDERS CONDITION NOT MET - because 'Min Trigger Order Comment Count' = 2 
- 1 LOT EURUSD BUY Order is opened @ 1.29900 with comment = 'ANDY'
- OPEN PENDING ORDERS CONDITION IS MET!
- EA opens 0.5  LOT Pending BUY STOP order @ 1.29800, TP = 1.30000, SL = 1.28800
- EA opens 0.75 LOT Pending BUY STOP order @ 1.29600, TP = 1.29800, SL = 1.28600


Example 2.2 - Demonstrate 'Multiplier by highest or lowest lot size' = Highest
-----------

VARIABLES
Sell/Buy Limit or Sell/Buy Stop? ---------------------------------------- eg. Sell / Buy Stop
Trigger Order Comment  -------------------------------------------------- eg. ANDY
Min Trigger Order Count ------------------------------------------------- eg. 2
Multiplier by highest or lowest lot size -------------------------------- eg. Highest
When orders 'Trigger Order Count' = 0, delete pending orders? ---- eg. true
Pending order 1 distance from Trigger Order ----------------------------- eg. 10
Pending order 1 multiplier ---------------------------------------------- eg. 0.5
Pending order 1 TP distance --------------------------------------------- eg. 20
Pending order 1 SL distance --------------------------------------------- eg. 100
Pending order 2 distance from Trigger Order ----------------------------- eg. 30
Pending order 2 multiplier ---------------------------------------------- eg. 0.75
Pending order 2 TP distance --------------------------------------------- eg. 20
Pending order 2 SL distance --------------------------------------------- eg. 100
Pending order 3 distance from Trigger Order ----------------------------- eg. 0
Pending order 3 multiplier ---------------------------------------------- eg. 0
Pending order 3 TP distance --------------------------------------------- eg. 0
Pending order 3 SL distance --------------------------------------------- eg. 0
MAgic Number ------------------------------------------------------------ eg. 1234 


Scenario 2.2
- 2 LOT EURUSD BUY Order is opened @ 1.30000 with comment = 'ANDY'
- OPEN PENDING ORDERS CONDITION NOT MET - because 'Min Trigger Order Comment Count' = 2 
- 1 LOT EURUSD BUY Order is opened @ 1.29900 with comment = 'ANDY'
- OPEN PENDING ORDERS CONDITION IS MET!
- EA opens 1  LOT Pending BUY STOP order @ 1.29800, TP = 1.30000, SL = 1.28800
- EA opens 1.5 LOT Pending BUY STOP order @ 1.29600, TP = 1.29800, SL = 1.28600


Example 3 - Demonstrate that IF 'Min Trigger Order Comment Count' > 1 THEN pending orders are based on trigger order with best price
---------

VARIABLES
Sell/Buy Limit or Sell/Buy Stop? ---------------------------------------- eg. Sell / Buy Stop
Trigger Order Comment  -------------------------------------------------- eg. ANDY
Min Trigger Order Count ------- ----------------------------------------- eg. 2
Multiplier by highest or lowest lot size -------------------------------- eg. Lowest
When orders 'Trigger Order Count' = 0, delete pending orders? ---- eg. true
Pending order 1 distance from Trigger Order ----------------------------- eg. 10
Pending order 1 multiplier ---------------------------------------------- eg. 0.5
Pending order 1 TP distance --------------------------------------------- eg. 20
Pending order 1 SL distance --------------------------------------------- eg. 100
Pending order 2 distance from Trigger Order ----------------------------- eg. 30
Pending order 2 multiplier ---------------------------------------------- eg. 0.75
Pending order 2 TP distance --------------------------------------------- eg. 20
Pending order 2 SL distance --------------------------------------------- eg. 100
Pending order 3 distance from Trigger Order ----------------------------- eg. 0
Pending order 3 multiplier ---------------------------------------------- eg. 0
Pending order 3 TP distance --------------------------------------------- eg. 0
Pending order 3 SL distance --------------------------------------------- eg. 0
MAgic Number ------------------------------------------------------------ eg. 1234 


Scenario 3
- 1 LOT EURUSD BUY Order is opened @ 1.30000 with comment = 'ANDY'
- OPEN PENDING ORDERS CONDITION NOT MET - because 'Min Trigger Order Comment Count' = 2 
- 2 LOT EURUSD BUY Order is opened @ 1.30100 with comment = 'ANDY'
- OPEN PENDING ORDERS CONDITION IS MET!
- EA opens 0.5  LOT Pending BUY STOP order @ 1.29900, TP = 1.30100, SL = 1.28900
- EA opens 0.75 LOT Pending BUY STOP order @ 1.29700, TP = 1.29900, SL = 1.28700



Example 4 - Demonstrate pending orders can re-open once they have been deleted
---------

VARIABLES
Sell/Buy Limit or Sell/Buy Stop? ---------------------------------------- eg. Sell / Buy Stop
Trigger Order Comment  -------------------------------------------------- eg. ANDY
Min Trigger Order Comment Count ----------------------------------------- eg. 2
Multiplier by highest or lowest lot size -------------------------------- eg. Lowest
When orders 'Trigger Order Count' = 0, delete pending orders? ---- eg. true
Pending order 1 distance from Trigger Order ----------------------------- eg. 10
Pending order 1 multiplier ---------------------------------------------- eg. 0.5
Pending order 1 TP distance --------------------------------------------- eg. 20
Pending order 1 SL distance --------------------------------------------- eg. 100
Pending order 2 distance from Trigger Order ----------------------------- eg. 30
Pending order 2 multiplier ---------------------------------------------- eg. 0.75
Pending order 2 TP distance --------------------------------------------- eg. 20
Pending order 2 SL distance --------------------------------------------- eg. 100
Pending order 3 distance from Trigger Order ----------------------------- eg. 0
Pending order 3 multiplier ---------------------------------------------- eg. 0
Pending order 3 TP distance --------------------------------------------- eg. 0
Pending order 3 SL distance --------------------------------------------- eg. 0
MAgic Number ------------------------------------------------------------ eg. 1234 


Scenario 4
- 1 LOT EURUSD BUY Order is opened @ 1.30000 with comment = 'ANDY'
- OPEN PENDING ORDERS CONDITION NOT MET - because 'Min Trigger Order Comment Count' = 2 
- 2 LOT EURUSD BUY Order is opened @ 1.29900 with comment = 'ANDY'
- OPEN PENDING ORDERS CONDITION IS MET!
- EA opens 0.5  LOT Pending BUY STOP order opens @ 1.29800, TP = 1.30000, SL = 1.28800
- EA opens 0.75 LOT Pending BUY STOP order opens @ 1.29600, TP = 1.29800, SL = 1.28600
- After 30 seconds the 2 pending orders are deleted manually
- OPEN PENDING ORDERS CONDITION IS MET! As less than a minute has passed. Pending orders reopen immediately based on new current price
- After 2 minutes the pending orders are deleted manually again
- OPEN PENDING ORDERS CONDITION IS NOT MET as more that a minute has passed since the most recent trigger order was opened (no pending orders open)
- 2 LOT EURUSD BUY Order is opened @ 1.29500 with comment = 'ANDY'
- OPEN PENDING ORDERS CONDITION IS MET! - There are 3 trigger orders now open but this is ok and conditions are still met.
- EA opens 0.5  LOT Pending BUY STOP order @ 1.29400, TP = 1.29600, SL = 1.28400
- EA opens 0.75 LOT Pending BUY STOP order @ 1.29200, TP = 1.29400, SL = 1.28200



If this is successful i may look to expand to having trigger orders from 2 sources eg:-

Trigger Order Comment 1  ------------------------------------------------ eg. ANDY
Min Trigger Order 1 Count ----------------------------------------------- eg. 2
Trigger Order Comment 2 ------------------------------------------------- eg. BOB
Min Trigger Order 2 Count ----------------------------------------------- eg. 2

This has many more permutations to consider and is more complex, so I will see how the first EA goes then decide.

反馈

1
开发者 1
等级
(450)
项目
560
26%
仲裁
22
41% / 36%
逾期
85
15%
空闲
发布者: 6 代码
2
开发者 2
等级
(839)
项目
1430
72%
仲裁
117
29% / 47%
逾期
354
25%
工作中
发布者: 3 文章
3
开发者 3
等级
(89)
项目
137
24%
仲裁
35
9% / 40%
逾期
52
38%
空闲
4
开发者 4
等级
(1916)
项目
3530
88%
仲裁
73
40% / 15%
逾期
268
8%
空闲
5
开发者 5
等级
(13)
项目
20
30%
仲裁
5
20% / 80%
逾期
5
25%
空闲
相似订单
to compile all the suitable markets for buy and place a buy for the shortest timeframe and place a sell for also a shortest timeframe it should work with all brokers and can automatically place a trade as long as its connected to the internet it should inform where the contracts are placed and for how long
XAUUSD Scalper M1 30 - 100 USD
I want XAUUSD scalping bot it works on strong support and resistance.Put pending BUY SELL orders at S&R levels. Adding some basic inputs TP,SL,Trailing.If you have similar EA share demo file in personal chat.if results satisfy with my expectations i will proceed with same EA any modifications if required
1 indicator SATV Final Work a. Symbol Name b. If Last Candle is Blue Then scanner Box Colour is Blue If Last Candle is RED Then Scanner Box colour is RED c. Live Price d. IF price is cross strong Buy or strong sell showing only For Buy/Sell and Candle low / High showing price 2 Bhav Copy Input field for 1-12 month If I want 5 Month back open Bhav & 1 Year 3 Moving Average Average Line price If Live price below to
It's a ninjacators.com indicator they offered at one time but no longer appears on their website. It's called the "Emini Predictive Trader" - based on tracking the three major indices - NYSE, DOW30, and NASDAQ - and suggests long or short entries if/when all three indices "agree". Would work well to trade the S&P500. I copied their original pitch page while it was up, along with the video that was on it. I'll attach
i NEED SOMEONE WHO CAN HELP ME CREATE A BOT THAT EXECUTE AND CLOSE TRADE AUTOMATICALLY ONLY FOR GOLD (XAUUSD) . A BOT THAT DOES NOT TRADE THE NEWS BUT ONLY TAKE TRADE ON ITS OWN AUTOMATICALLYON A NORMAL TRADING DAYS , I DONT MIND IF YOU ALREADY HAVE ONE THAT YOU ALREADY CREATED BUT TRUST AND HAVE A GOOD PERCENTAGE WIN RATE . I WANTS A BOT THAT USES (SL & TP) ON ITS OWN , OPENING AND CLOSES TRADE AUTOMATICALLY WITHOUT
Busco programador para crear un bot de trading automático. El bot operará en opciones binarias en Nadex, basado en la relación entre dos índices. La estrategia completa será entregada por privado al programador que acepte el trabajo. Requisitos: • Operación automática con delay configurable. • Entrada basada en datos de otro activo. • Personalizable en cantidad, expiración y lógica. • Código fuente incluido
Hello, I'm currently seeking a skilled and reliable MQL4 developer to assist in modifying and enhancing my Expert Advisor, Reversal Master V10.1 , to its next version V12.1 FF . This update involves integrating several advanced third-party indicators and implementing new trading logic based on clearly defined conditions to improve performance and strategy precision. If you have experience in EA development and enjoy
Hello, I'm currently seeking a skilled and reliable MQL4 developer to assist in modifying and enhancing my Expert Advisor, Reversal Master V10.1 , to its next version V12.1 FF . This update involves integrating several advanced third-party indicators and implementing new trading logic based on clearly defined conditions to improve performance and strategy precision. If you have experience in EA development and enjoy
Project Description: I am looking for a highly skilled MQL5 developer to create a robust solution for a persistent TLS handshake failure. My Expert Advisor (EA) needs to connect to a secure WebSocket server ( wss:// ) hosted on Railway.app or any other online websocket provider, but the connection consistently fails during the security negotiation phase. Ideal Candidate Skills: Deep expertise in MQL5 programming
I need an experienced developer to convert my MT4 EA based on the Super Trend indicator to MT5. The new EA should also include additional features. Essential modifications: - Incorporate additional indicators: Moving Average and PSAR. - Add custom alerts: Push and sound notifications. - Implement money management rules

项目信息

预算
30 - 50 USD
开发人员
27 - 45 USD
截止日期
 1  7 天