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

MQL5 전문가

작업 종료됨

실행 시간 26 일
피고용인의 피드백
Thanks a lot. Wish you safe trading.

명시

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.


응답함

1
개발자 1
등급
(137)
프로젝트
160
23%
중재
7
0% / 43%
기한 초과
4
3%
로드됨
2
개발자 2
등급
(42)
프로젝트
62
8%
중재
12
58% / 42%
기한 초과
1
2%
무료
3
개발자 3
등급
(47)
프로젝트
68
13%
중재
2
50% / 0%
기한 초과
7
10%
작업중
4
개발자 4
등급
(183)
프로젝트
234
59%
중재
7
29% / 29%
기한 초과
8
3%
작업중
5
개발자 5
등급
(10)
프로젝트
13
31%
중재
2
50% / 0%
기한 초과
1
8%
작업중
6
개발자 6
등급
(68)
프로젝트
84
39%
중재
4
50% / 50%
기한 초과
2
2%
무료
7
개발자 7
등급
(37)
프로젝트
59
27%
중재
25
20% / 52%
기한 초과
10
17%
작업중
8
개발자 8
등급
(10)
프로젝트
25
28%
중재
1
0% / 0%
기한 초과
1
4%
로드됨
9
개발자 9
등급
(13)
프로젝트
18
6%
중재
1
0% / 0%
기한 초과
1
6%
작업중
10
개발자 10
등급
(22)
프로젝트
28
11%
중재
6
33% / 50%
기한 초과
4
14%
작업중
11
개발자 11
등급
(236)
프로젝트
418
34%
중재
52
37% / 40%
기한 초과
153
37%
바쁜
비슷한 주문
Estou a procura de um programador que faça um robo que automatize as análises feitas por ele nas ondas de Elliot e que faça entradas precisas com proteções das mesmas e com proteções também ajustáveis para não entrar em noticias de 2 ou 3 estrelas, e que seja para o mercado B3 Mini Indice ou Mini Dolar
Sosso 30+ USD
I would like to order an automated robot to the job for me as I have no clue on whatsoever the trading is about. The bot should be able to do it's job, everything for me and it providing the best services for one to use
are you aware of the Monday Range Strategy? https://www.youtube.com/watch?v=7B_yBBFx6z8 5pm EST time sunday - monday 5pm est and it has to be on the H1 chart , minimum 1:2 Risk to reward and break even function after 1:1
Strategy: 1. Identify strong supply and demand levels. Draw them in the chart in green and red. In Tradingview: Market Structure Break & Order Block by EmreKb von EmreKb --> Strong demand and supply area refer to picture below (Buy and Sell Zones). There must be a strong demand / supply zone on a higher time frame in order for the set up to be valid. The time frame can be selected in the settings. E.g. "Higher Time
Hi there, I currently have a scalping strategy based of 3 thrid party indicators that I would like automated. This would help me with running the strategy through the strategy tester. Two of the indicators dont have iCustom functionality to pull the data in, so another way would have to be devised. The strategy incorpates trading activity, sentiment in the for of the ratio of traders in profit, and a third techincal
Hi, I have a Live Data feature for my trading accounts that lets me check details like total open positions, number of lots, profits, etc. I need someone to add the number of pending orders to this live data. This is important for me to ensure that all accounts have the same number of pending orders, since I use a copy trading system. Also, there is a website where I check all the data. In this case, you would need
OK I just need 1 MOD Who can do it free There is a (Reciever EA) that receives signals from a (Sender EA) I need to ADD one mod It may even look like the option/signal is there= Ignore it Coding was wrong on that part This is simple The option in the Reicver EA will Be called "Open Copy Live" with the option to Set to True or False When set to true the Reicver EA will Watch
Hi there, I need a very highly skilled mt4 programmer to code and design an EA from scratch. The logic of the EA will be discussed with you in comments section, only reach out if you can code perfectly for mt4 using MQL4 coding solutions language, EA must be able to run well without any problems and work according to the logic thanks
I came across an indicator that's perfectly good in catching spikes in boom amd crash but i would want it to be modified and to improve accuracy As a professional you will have to go through the indicator and explain to me the strategy with which the indicator was buid and tell me the possibility of improving it better
### Summary of EA Requirements 1. **Time Period**: - The EA should operate on the H4 timeframe. 2. **RelicusRoad MACD v2 Indicator**: - **Parameters**: - Fast EMA Period: 12 - Fast EMA Type: Close price - Slow EMA Period: 24 - Slow EMA Type: Close price - Signal SMA Period: 9 - The EA should use this indicator to determine the crossover condition between the MACD line and the signal line. 3

프로젝트 정보

예산
30 - 50 USD
VAT (21%): 6.3 - 10.5 USD
총: 36.3 - 60.5 USD
개발자에게
27 - 45 USD