仕事が完了した

実行時間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
評価
(258)
プロジェクト
322
30%
仲裁
34
26% / 65%
期限切れ
10
3%
仕事中
3
開発者 3
評価
(152)
プロジェクト
228
80%
仲裁
22
27% / 50%
期限切れ
11
5%
パブリッシュした人: 24 articles, 1882 codes
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
評価
(77)
プロジェクト
244
74%
仲裁
7
100% / 0%
期限切れ
1
0%
パブリッシュした人: 1 article
9
開発者 9
評価
(209)
プロジェクト
220
75%
仲裁
0
期限切れ
0
10
開発者 10
評価
(27)
プロジェクト
27
26%
仲裁
2
0% / 50%
期限切れ
1
4%
11
開発者 11
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
パブリッシュした人: 9 codes
類似した注文
Sierra Chart Alerts to MT5 via Webhook (Alert Manager File Version) Objective: Create a Custom Study (ACSIL / C++) that monitors alerts from the Alert Manager file and forwards any valid alert directly to MT5 via an HTTP POST (Webhook) in JSON format. Additional Note: The study should allow adding any modifications in the future and provide clear insights into the alert points in Sierra Chart. 1. Data Flow Diagram
Live chart [ expert is not executing trades on xauusd ] , Deleting Existing Parameter not in use , Live Chart Adjustments Only , No Need to Change anything else , expert will be live testing Throughout
Prepare expert for xauusd live chart [ expert is not executing trades on xauusd ] . Deletion and cleaning code . Trailing Stop Rule to follow the given method . Live Chart Only

プロジェクト情報

予算
30+ USD
締め切り
最低 1 最高 7 日