Simple EA to Close Trades when Spread is Low

MQL4 Experts

Job finished

Execution time 8 hours
Feedback from customer
Job well done. EA works perfectly

Specification

I request an EA to close trades when spread is below a certain value.

This is a relatively simple EA that will monitor the spreads of all open trades, and will close the trades when its spread is below a specified value. There is a time range during which the EA will constantly monitor spreads and close trades. When not in the time range, the EA does nothing. There is also a fixed time each day when EA will force close all trades.

(Note: my broker uses the suffix y. So EURUSD becomes EURUSDy.)

Settings required:

MaxSpread - Maximum spread (5 decimals) that the EA will close trades. For example, 25 means EA will close the trades with spread 2.5 pips and below.

StartTime - EA will start to monitor spreads and close trades at this broker time. For example, 19:00 means EA will start monitoring spread at 19:00.

EndTime - EA will stop monitoring spreads and closing trades at this broker time. For example, 21:00 means EA will stop monitoring spread at 21:00.

CloseAllTime - At this broker time, EA will close all trades. For example, 21:00 means EA will close all trades at 21:00.



Instant closing of trades when current spread≤MaxSpread is most important.

Responded

1
Developer 1
Rating
(885)
Projects
1410
67%
Arbitration
123
32% / 41%
Overdue
218
15%
Free
Published: 1 code
2
Developer 2
Rating
(3)
Projects
5
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(169)
Projects
204
30%
Arbitration
25
40% / 44%
Overdue
12
6%
Free
4
Developer 4
Rating
(173)
Projects
201
49%
Arbitration
18
11% / 44%
Overdue
1
0%
Free
Similar orders
SMC ORDER BLOCK 30 - 60 USD
I want already build FULLY AUTOMATED order block MT5 XAUUSD HTF H4 ENTRY LTF M15 - Show result on live account. m15 ob entry in the direction of h4 ob bias the developper to provide source code in the end
I need an MT5 Expert Advisor built as a high-precision volumizer for Forex. Its core purpose is to generate controlled trading volume for rebates, while still maintaining low-risk account growth. I am not looking for aggressive profit chasing. I am looking for a stable, intelligent EA that can produce volume in a disciplined way without damaging the account. The ideal system should trade major currency pairs, avoid
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot
I need a high frequency trading robot for gold in one or 5 minute timeframe the robot should have spread filter where it should only open trades below a set spread should have news filter to allow trading during fundal news or not the robot should have input in number of minutes to close all open trades and remove pending orders before fundamental news as part of news filter. It should also have the number of minutes
Hello! I want to programm EA that uses volume profile indicator, but I am not sure if this is possible. Only experienced programmers please, I will not select a programmer who did only few jobs. Before starting I need to make sure you understand everything and that this is for sure technically possible
Hello, I am looking for a professional trading system including: 1- Trading Bot (Expert Advisor): - Good profit performance - High security and strong risk management - Works efficiently during high market volatility (news and strong movements) - Works on all pairs (Forex + Gold) 2- Signal Indicator: - Provides clear Buy and Sell signals - Includes Take Profit and Stop Loss - No repaint (signals must not change or
Hi, I’m looking for a top-tier, profit-optimized EA that has the potential to scale trading returns significantly. My goal is to maximize growth over time. Can you help develop a bespoke EA that could potentially scale to high six or seven figures
Max amount grid 30+ USD
max amount grid step for magic number do keep deleting .only when it is in negative floating .but when it is profit allow to go over the max and replays to grid step
Apply with a screen of your work . Symbol Specific Logic . Live Chart Optimization Check the Core logic . [back tests as well] Change points to pips . Create buffer for the zone

Project information

Budget
50+ USD