EA hedging news modifications

Техническое задание

Hello, I want to modify my EA so as it can have news trading mode

Add a News Trading Mode into my existing EA, but still use the same zone recovery logic (hedging, pending orders, multipliers, recovery steps, etc.) that already exists.

🧠 REQUIREMENTS (and execution plan)

1. ✅ New EA Mode: News Mode

Add a new input:

input bool Trading_NewsOnly = true;

If Trading_NewsOnly == true → EA only trades during scheduled news events.

If false → EA behaves normally (the current behavior).

2. 📅 Manual Input of News Times

Add another input:

input string NewsTimesList = "2025.07.12 15:30;2025.07.19 21:00;2025.08.01 15:30";

EA parses this string into an array of datetime values.

EA continuously checks (every tick/second) whether the current time is inside a news window (a few seconds before and after).

If it’s news time → EA triggers pending orders logic.

If not → EA does nothing.


3. ⏰ Smart Candle Selection

Use the existing logic that already selects a candle high/low for pending orders.
Steps:

Start from M30 → fallback to M15 → fallback to M5 → fallback to M1.

If all are invalid (price already broke the candle high/low), then use a fixed zone (see point 5).

4. 🔄 Pending Orders + Recovery Logic

EA places BuyStop and SellStop around the chosen candle.

When one order is triggered → EA continues with the existing zone recovery strategy (hedging, multipliers, recovery steps).
⚠️ No changes to recovery logic — just reuse what already exists.

5. 🚫 Fixed Zone Fallback

Add inputs:

input bool UseFixedZoneFallback = true;
input double ZonePips = 4.0;

If all candle setups fail → EA sets pending orders at a fixed distance:

BuyStop = current price 5 or more pips

SellStop = current price - 5 or more pips


6. 📏 Post-News Impact Analysis

Add inputs:

input double minImpactPips = 5.0;
input int impactScanSeconds = 50;

After news, EA measures if price actually moved enough (minimum X pips within Y seconds).

If movement is too small → cancel pending orders or close trades.

7. 🛡 Slippage Protection

input double maxSlippagePips = 10.0;

If the order is triggered with slippage beyond this value → EA should close the trade immediately.


8. ⏳ Pending Order Expiry

input int PendingExpirySeconds = 50;

Pending orders expire automatically after X seconds if not triggered.

9. ❌ Auto-Close on Stall

input int AutoClosesec = 50;
input bool UseBreakEvenOnStall = true;

If a trade is opened but price does not move:

Either close the trade after X seconds, or

Move SL to breakeven (if option is enabled).


1. Add all new inputs (bools, strings, doubles, ints).


2. Parse NewsTimesList into an array of datetime.


3. Add a function to check if the current time is inside a news window.


4. If EA is in News Mode, trigger trading only during news events.


5. Use existing pending order placement + recovery logic.


6. Add cancellation and protection rules (impact check, slippage check, expiry, auto-close).
7. option to use buy stop limit order and sell stip limit oder for slippage protection for meta trader 5

🔑 Summary

The EA must:

Know when it’s in News Mode.

Run the same current zone recovery system (no new strategy).

Place pending orders only during news.

Cancel or protect trades if impact/slippage/expiry rules are met... sorry for the code it's a promt from GPT

Откликнулись

1
Разработчик 1
Оценка
(69)
Проекты
98
52%
Арбитраж
13
38% / 23%
Просрочено
8
8%
Свободен
2
Разработчик 2
Оценка
(2)
Проекты
2
0%
Арбитраж
0
Просрочено
0
Работает
3
Разработчик 3
Оценка
(238)
Проекты
244
31%
Арбитраж
0
Просрочено
3
1%
Свободен
Опубликовал: 2 примера
4
Разработчик 4
Оценка
(11)
Проекты
14
7%
Арбитраж
6
50% / 33%
Просрочено
2
14%
Загружен
5
Разработчик 5
Оценка
(1)
Проекты
7
86%
Арбитраж
0
Просрочено
0
Работает
6
Разработчик 6
Оценка
(387)
Проекты
412
30%
Арбитраж
66
20% / 70%
Просрочено
52
13%
Работает
7
Разработчик 7
Оценка
(44)
Проекты
45
24%
Арбитраж
23
13% / 74%
Просрочено
10
22%
Работает
8
Разработчик 8
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
9
Разработчик 9
Оценка
(285)
Проекты
460
39%
Арбитраж
95
43% / 19%
Просрочено
73
16%
Занят
Опубликовал: 2 примера
Похожие заказы
MAKE THE MODIFICATION IN THE EXPERTS' FILES: EA_MT4, EA_MT5 Add more of this in (Function to print info) Trade Mode: Demo Name: Artem Server: MetaQuotes-Demo Currency: USD Company: MetaQuotes Software Corp. Limit Orders: 0 Lot Size Limits: (0.00)-(000.0) StopOut Mode: Percent Trade Allowed: Yes Trade Expert: Yes Margin Mode: Retail hedging Hedge Allowed: Yes Commission: 0.00 USD Swap: 0.00 USD Taxes: 0.00 USD Margin
Description: I am looking for a proven Expert Advisor (EA) that has already been developed, tested, and shown consistent results suitable for prop firm challenges (e.g., FTMO). ⚡ Important Requirements: You must already have a working system that meets the specifications below. I will require a demo version (ideally with a 30-day expiry) so I can both backtest and forward test before final purchase. The EA must
Hello I posted something like a portfolio website design, but I was unable to log in That is why I created a new one. If you are sending an application and you are among those who sent yesterday, kindly signify I want a website where my trading results and orders will be uploaded manually, not by an EA. My budget is 50$, kindly send a DM if you can get this done SEND A DM AND I WILL PROVIDE YOU THE REQUIREMENT
We have an Expert Advisor (EA) code written in MQL5 that requires immediate attention. The current issue is critical: the EA is executing every single trade without any discernible logic or condition. The trading calculations are completely wrong , resulting in the absence of any functional trading strategy. We are looking for a genuine and experienced MQL5 developer to debug and fix the core trading logic . This is
I am looking for a Coder to program a fully automated QL5 EA. The EA logic is shown on the attached screenshots. Please go through the attachments to get the whole job description
TMP Trader 30 - 200 USD
TMP Trader – MT4 Indicator Project Specification This document outlines the required features and specifications for a custom MT4 indicator named TMP Trader. The tool is based on a price-action strategy that uses manually drawn trap zones to detect high-probability trade setups. The focus is on visual candle/body strength filtering, engulfing confirmation, and manual control of zones and trade management levels. Key
Hello! I'm having issues with withdrawing from mql5, and I desperately need assistance. Could someone please help me resolve this problem so I can successfully withdraw my funds? I'd greatly appreciate the support and guidance
Looking for someone to design EA to deliver high-probability trades (~90% win rate) with low drawdown (~3%) using AI, multi-timeframe SMC/ICT logic, and advanced risk management. Please share your previous work. 1. Core Strategy Entry Logic: Trades primarily on 5M timeframe HTF Zones (4H) : Order Blocks (OB), Fair Value Gaps (FVG), Equilibrium Zones (EQ) 1H OB Conflict Validation to avoid high-risk areas Full HTF
1. Trading Logic Supertrend Indicator : Inputs: ATR Period, ATR Multiplier, Timeframe. Signal is generated when the Supertrend line flips direction. Buy Condition: When price closes above the Supertrend line and the Supertrend flips from bearish (above price) to bullish (below price). EA opens a Buy order. Sell Condition: When price closes below the Supertrend line and the Supertrend flips from bullish (below
EA require 50+ USD
Hello I have an EA that i am looking to develop similar one, i also have a strategy but not sure, what do you suggest? are you able to utilize those data to create similar one EA or not? I can share files if you require Regards

Информация о проекте

Бюджет
35+ USD
Сроки выполнения
от 1 до 7 дн.

Заказчик

Размещено заказов5
Количество арбитражей0