Simple EA that removes pending orders on a fixed time or when spread is too high

MQL5 Experts

Trabalho concluído

Tempo de execução 26 dias
Comentário do desenvolvedor
Thanks a lot. Wish you safe trading.

Termos de Referência

Concept:


The EA will remove pending orders (Limit and Stop) when spread is too high to avoid the orders being hit at a bad price. (ie during high overnight spreads or news events). They will either be placed back once spread is low again or will be transformed into market orders if they are still to be executed when spread is normalised.


It is also possible to set a fixed time period where pending orders will be deleted and placed back. (for example for overnight spreads)


When loaded on a chart (ie EURUSD) it checks the spread of that chart and when spread is higher then the set parameter, it removes either all pending orders or pending orders from certain Magic numbers (depending on settings). It places back the pending orders when spread is back to normal or executes them as market orders if the pending order would still be triggered.


The EA can be attached to different charts (i.e. EURUSD, GBPCAD, XAUUSD, EURJPY) working independantly from each other for different pairs.


Parameters:


Max Spread allowed (points): default = 30

Remove Stop orders: Yes/No (default = Yes)

Remove Limit orders: Yes/No (default = Yes)

Use fixed time removal: Yes/No (default = No)

Time to remove pending orders: (default = 23:30)

Time to place back pending orders: (default = 01:30)

Check magic number: Yes/No (default = No) => If no, it applies to ALL orders with/without MN

Magic Numbers: example: 0, 1550, 9999... (Magic Nrs seperated by comma. 0 = manual orders)

Max price difference to execute Market order: (default = 1000)


Examples:


EURUSD current price is 1.10650 and there is a STOP buy order at 1.10700.

Max Spread is set to 30 points and the spread goes to 31 points. The STOP buy order is now removed from the chart. 30 min. later, the spread drops to 25 points. The EA checks the price and if it is still below 1.10700 and it is possible to place the STOP order back, it places back te stop order. If price is now above 1.10700 and it is impossible to execute toe STOP order, it executes a Market buy order with the same lot size instead.


GBPCAD is at 1.68700 at 22:59 and the fixed time removal is set to YES 23:00 to 01:30.

Max spread allowed is set to 30. There is a LIMIT BUY order for 0.10 at 1.68600.

The LIMIT order gets removed at 23:00. At 01:30 the spread is still 40 points so the order does not get placed back yet. At 01:50 the spread gets to 20 points so the EA checks if it is possible to place the 0.10 LIMIT buy order back. Since the current price dropped to 1.68550 it is not possible to place the Limit order anymore so it executes a Market BUY order of 0.10 instead.

If price would have moved more then 100 pips from the limit order (1.68600 => 1.67600) the order would NOT be transferred into a market order and would be cancelled instead because of the Max price difference parameter.


Respondido

1
Desenvolvedor 1
Classificação
(144)
Projetos
170
23%
Arbitragem
7
29% / 43%
Expirado
4
2%
Carregado
2
Desenvolvedor 2
Classificação
(42)
Projetos
62
8%
Arbitragem
12
58% / 42%
Expirado
1
2%
Livre
3
Desenvolvedor 3
Classificação
(50)
Projetos
73
15%
Arbitragem
3
33% / 33%
Expirado
7
10%
Carregado
4
Desenvolvedor 4
Classificação
(192)
Projetos
247
61%
Arbitragem
8
25% / 38%
Expirado
8
3%
Trabalhando
5
Desenvolvedor 5
Classificação
(10)
Projetos
13
31%
Arbitragem
2
50% / 0%
Expirado
1
8%
Trabalhando
6
Desenvolvedor 6
Classificação
(75)
Projetos
92
42%
Arbitragem
4
50% / 50%
Expirado
2
2%
Trabalhando
7
Desenvolvedor 7
Classificação
(37)
Projetos
59
27%
Arbitragem
25
20% / 52%
Expirado
10
17%
Trabalhando
8
Desenvolvedor 8
Classificação
(10)
Projetos
25
28%
Arbitragem
2
0% / 0%
Expirado
1
4%
Carregado
9
Desenvolvedor 9
Classificação
(16)
Projetos
21
14%
Arbitragem
0
Expirado
1
5%
Trabalhando
10
Desenvolvedor 10
Classificação
(24)
Projetos
31
16%
Arbitragem
7
29% / 43%
Expirado
4
13%
Trabalhando
11
Desenvolvedor 11
Classificação
(243)
Projetos
429
34%
Arbitragem
54
37% / 39%
Expirado
156
36%
Ocupado
Pedidos semelhantes
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA. # MANUAL ZONE MARKING # THREE TYPES OF ENTRIES (
p.p1 {margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px 'Trebuchet MS'; color: #313131} p.p1 {margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px 'Trebuchet MS'; color: #313131} li.li1 {margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px 'Trebuchet MS'; color: #313131} ol.ol1 {list-style-type: decimal} I have an EA that open trades when my entry conditions are met. It usually executes one trade per day. I'd like to add an option
у нас есть стратегия, нам нужно написать mql5-код ​​для тестера стратегий МТ5,Цена договорная. Мой контакт @abbosaliyev из Telegram Программист должен знать РУССКИЙ ИЛИ УЗБЕКСКИЙ язык. Задание: разработать тестер, который использует шаблон условий на открытие и проверит весь исторический график на всех доступных таймфреймах. Остальная информация будет предоставлена ​​после согласования цены
a coder is required to add an indicator to existing ea The new indicator will work as 1. option to combine with exiting indicator to open trade 2. it will be used as alternative BE point 3. It can also be used to close order or combine with other to close trade The second Job is telegram bot to get alert fr news trade and others Details when you apply i will test the ea work on live market and all bug is fixed before
Hello, I want to make an EA based on SMC and a developer that is familiar with the concept and full understanding of this. Must have done similar jobs before and be able show it. I only want to work with developer that has good track record and is precise. Further information will be handed when contact is made. Developers that has zero rating will not be considered. Listed price is a base point. The project can also
EA DEJA FABRIQUE ? MODIFIER QUELQUE LIGNE POUR LE RENDRE RENTABLE /////////////////////++++++++++++++++++++++++++++++++++ EA AVEC UN SYTEME SIMPLE ; SEULEMENT A MODIFIER %%%%%%%%%%%%%%%%%% SI PERSONNE SACHANT CODER CORRECTEMENT , CE TRAVAIL EST POUR TOI
Trade methodology based on Red and Green lines entering Overbought / Oversold zone. Using confluence of Higher time frame, Moving Average a trade can enter when there is a strong slope angle. Market Base Line is used to determine overall market sentiment. This is designed to be an established trend scalping strategy on lower time frames. To be used initially on demo then real account when settings have been fine
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function (A) Add Transform combine the 4 Expert Advisors into just 1 Expert Advisor, maintaining the individuality of each one Leave in extern (false) or (true)
Description: I am seeking an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5 based on a specific trend-following strategy. The strategy includes precise risk management, advanced trade management features, and additional risk management tools. The EA should be adaptable to any timeframe on which it is attached. Below are the detailed requirements and parameters for the EA: Strategy
I need an EA trading frequently (HFT or something like), and it sould have some features below: 1、Have a clear trading logic 2、Have a good backtest result 3、Have a demonstrated benefitable result in a live account trading 4、Can avoid the news time period or not sensitive to news

Informações sobre o projeto

Orçamento
30 - 50 USD
IVA (21%): 6.3 - 10.5 USD
Total: 36.3 - 60.5 USD
Desenvolvedor
27 - 45 USD