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
評価
(157)
プロジェクト
187
26%
仲裁
8
25% / 38%
期限切れ
5
3%
仕事中
2
開発者 2
評価
(42)
プロジェクト
62
8%
仲裁
12
58% / 42%
期限切れ
1
2%
3
開発者 3
評価
(57)
プロジェクト
82
13%
仲裁
3
33% / 33%
期限切れ
7
9%
取り込み中
4
開発者 4
評価
(201)
プロジェクト
261
63%
仲裁
9
22% / 33%
期限切れ
10
4%
仕事中
5
開発者 5
評価
(10)
プロジェクト
13
31%
仲裁
2
50% / 0%
期限切れ
1
8%
仕事中
6
開発者 6
評価
(77)
プロジェクト
94
43%
仲裁
4
50% / 50%
期限切れ
2
2%
7
開発者 7
評価
(37)
プロジェクト
59
27%
仲裁
25
20% / 52%
期限切れ
10
17%
仕事中
8
開発者 8
評価
(10)
プロジェクト
25
28%
仲裁
3
0% / 0%
期限切れ
1
4%
取り込み中
9
開発者 9
評価
(29)
プロジェクト
35
29%
仲裁
0
期限切れ
1
3%
仕事中
10
開発者 10
評価
(26)
プロジェクト
34
15%
仲裁
6
33% / 50%
期限切れ
5
15%
仕事中
11
開発者 11
評価
(248)
プロジェクト
444
34%
仲裁
56
36% / 38%
期限切れ
163
37%
取り込み中
類似した注文
Good day, I want someone to help me create a universal news filter with on/off switch, with start and end settings, and drawdown control with magic number of EAs, etc. Thanks
Hello, I am looking for a professional programmer to optimize my existing EA integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. i want it to be an EA that can be trusted to carry trade with the help of chat gpt and also have a very low drawdown
Hello, I am looking for a professional programmer to create a trading expert on the MT4 platform, integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. Further details will be provided to the applicants later
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are
EA based on RSI and MA 100 - 400 USD
Program is based on RSI and MA indicators dynamic as triggers, for Open/Close criteria. Runs automatically but inputs can be updated manually. It uses a GUI to manage it. Multi TF analysis. Log register of every operation for analysis (db) Open Source deliver. Kindly apply IF you have previous experience with trading and mql/python/c bot/algo developing. And if you have a good track record . ps: Better if you have a
This is and EPA (Entry Point Analyzer). Automatically analyzes the algorithm for XAU/USD and places a safe entry point mark for your trade. This has been tested and gives out 90% success rates
I am looking for an experienced MQL5 developer to help me finalize and optimize an Expert Advisor (EA) for the FTMO challenge. I have already built a significant portion of the code, but it requires further refinement and optimization to ensure it functions according to the trading strategy I intend to use. I am happy to share all the resources, including the current code, reference materials, and detailed
dreams good and have a great Cash out from your smart phone , tuyoywuiy glamorous flood see full idk idk slow so dolls stupid sis workouts who's spark koalas oral waits also doggo idk
I need a modification on my existing Ea if you can Can fixed risk management to lot size instead of percentage. don’t want strategic risk management input to be based on percentage Instead lot size. The strategic risk management function I need turned from percentage to lot based And I need sells and buys to have separate tps and sl options Budget:$100 Day: 1 day
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are

プロジェクト情報

予算
30 - 50 USD
VAT(付加価値税) (21%): 6.3 - 10.5 USD
合計: 36.3 - 60.5 USD
開発者用
27 - 45 USD