Работа завершена

Время выполнения 27 дней

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

I found a code here, that allows displaying the MQL5 Calendar news in real and backtesting mode as vertical lines, with the news for one currency in one color and the news of the other currency in a different color. However, I am getting an error  ("array out of range ") that I want you to fix.

In addition, I want you to create another function that will draw a horizontal line covering some time before and after a news event.

This function will be called "DisplayNewsWindow" and will take as variables (Currency, EventName, and WindowHours). Say that for the Currency ,  "USD", the EventName "Wholesale Sales m/m" will be on January 10 at 8am, so if I use DisplayNewsWindow ("USD","Wholesale Sales m/m", 2), and horizontal line at the bottom of the chart should appear between 6am and 10 am on that day (i.e., 2hours before and after the news event). The currency name and News event name should appear as tooltip, as you mouse hover the horizontal bar.

I attach the files: "News" is a Class file that saves and updates the list of events in a local computer. "NewsEA" is the EA in which that function is used. You need to create the DisplayNewsWindow function in the News file and use it in the EA.


I think the error is in the fucntion CNews::next2


Ultimately, I want the news events drawn as vertical lines in two colors (one for each currency in a symbol), and some specific news drawn as horizontal lines in the chart, also color coded by currency.

Файлы:

MQH
News.mqh
30.6 Kb
MQ5
NewsEA.mq5
347 b

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

1
Разработчик 1
Оценка
Проекты
0
0%
Арбитраж
1
0% / 100%
Просрочено
0
Свободен
2
Разработчик 2
Оценка
(292)
Проекты
364
30%
Арбитраж
37
27% / 65%
Просрочено
10
3%
Загружен
Опубликовал: 10 примеров
3
Разработчик 3
Оценка
(152)
Проекты
228
80%
Арбитраж
22
27% / 50%
Просрочено
11
5%
Свободен
Опубликовал: 24 статьи, 1882 примера
4
Разработчик 4
Оценка
(31)
Проекты
41
20%
Арбитраж
9
11% / 89%
Просрочено
5
12%
Свободен
5
Разработчик 5
Оценка
(19)
Проекты
22
23%
Арбитраж
5
40% / 60%
Просрочено
2
9%
Работает
6
Разработчик 6
Оценка
(45)
Проекты
46
24%
Арбитраж
34
9% / 85%
Просрочено
10
22%
Свободен
7
Разработчик 7
Оценка
(3)
Проекты
1
0%
Арбитраж
5
0% / 100%
Просрочено
0
Свободен
8
Разработчик 8
Оценка
(78)
Проекты
247
74%
Арбитраж
7
100% / 0%
Просрочено
1
0%
Свободен
Опубликовал: 2 статьи, 1 пример
9
Разработчик 9
Оценка
(240)
Проекты
251
78%
Арбитраж
0
Просрочено
0
Свободен
10
Разработчик 10
Оценка
(27)
Проекты
27
26%
Арбитраж
2
0% / 50%
Просрочено
1
4%
Свободен
11
Разработчик 11
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 9 примеров
Похожие заказы
MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical
a { text-decoration: none; color: #464feb; } tr th, tr td { border: 1px solid #e6e6e6; } tr th { background-color: #f5f5f5; } Project Description I need an Expert Advisor (EA) for MetaTrader 5 (MT5) that can automatically trade Gold (XAUUSD) and major Forex pairs. The EA must analyze market conditions, open and close trades automatically, manage risk effectively, and be fully compatible with the MT5 Strategy Tester

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

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