Help fixing EA and adding horizontal line

Job finished

Execution time 27 days

Specification

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.

Files:

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

Responded

1
Developer 1
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
2
Developer 2
Rating
(118)
Projects
139
22%
Arbitration
5
0% / 60%
Overdue
4
3%
Working
3
Developer 3
Rating
(135)
Projects
195
81%
Arbitration
18
28% / 44%
Overdue
10
5%
Working
4
Developer 4
Rating
(31)
Projects
41
20%
Arbitration
9
11% / 89%
Overdue
5
12%
Free
5
Developer 5
Rating
(15)
Projects
16
25%
Arbitration
3
67% / 33%
Overdue
0
Loaded
6
Developer 6
Rating
(37)
Projects
40
25%
Arbitration
20
15% / 75%
Overdue
8
20%
Busy
7
Developer 7
Rating
(3)
Projects
1
0%
Arbitration
2
0% / 100%
Overdue
0
Working
8
Developer 8
Rating
(53)
Projects
156
69%
Arbitration
4
100% / 0%
Overdue
1
1%
Working
9
Developer 9
Rating
(63)
Projects
75
55%
Arbitration
0
Overdue
0
Free
10
Developer 10
Rating
(27)
Projects
27
26%
Arbitration
2
0% / 50%
Overdue
1
4%
Free
11
Developer 11
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
I want the trade to trigger anytime it sees the opportunity on all time frames, sl tp should be automated and all trades should be trigger anytime on cpi news and etc
hello. I want 12 csvs file contains the trading view historial candles data from 2000 to now in 1M timeframe for this symbols: Xagusd - OANDA Wticousd - OANDA Nas100usd - OANDA Spx500usd - OANDA Us30usd - OANDA Xptusd - OANDA J225usd - OANDA Btcusd - OANDA Ethusd - OANDA Uk100gbp - OANDA De30eur - OANDA Eu50eur - OANDA Collected data should be the exact data that trading view candles reports. not from
I need someone to help me convert my tradingview pinescript to mt4, I only got $20 for this and I am gonna be giving you more works ahead, Also I will be paying with cryptocurrency cause my PayPal os not working here, Don't know why
Hi i am programmer on MT5 and mt4 and i am looking for a way to extract specific data from a website. Is is possible to display on chart and/or send notification to android for https://www.fxstreet.com/news Breaking news only
Trade Entry Rule : 1 . New Arrow Higher or Lower Appear : Entry . (Range/Period: {Input}) After Entry Trailing Stop Trails { Trail Step (Input) } 2 . Lot Size { Input } 3 . Take Profit { Input } 4 . Max Number of Trades { Input } 5 . Total Number of Trades per Entry { Input } ---------------------------------------------------------------------------- 6 . Spread Filter { Input }
Placing of order and opening up position. And management of trading position/orders, cancellation of orders and closing of position order lot calculation processing trading errors and environmental state signal lifetime what the programme cannot do for you
I need someone to help me convert my tradingview pinescript to mt4, my budget for this project is $20 and I need this done fast in two days, Also, I am going to need you to be able to build a new indicator because that's the nest project, But I need to know if you can do this first , Thank you
I need you to convert my tradingview pinescript to mt4, I have just $10 for it now, But i am going to give you more work later on cause i still have more work i am going to need you to work on for me, and i will be paying with crypto, Thank You
Hello, I am in need of an expert to help me convert my tradingview pinescript to mt4, I will attach the file, But for now, I only got $15 for this project and the only payment method I can use right now is crypto, I will send it to you through crypto, Also I need someone that is ready to work because I still have lot of projects I will need him to do for me
Trade Entry Rule : 1 . New Arrow Higher or Lower Appear : Entry . (Range: {Input}) After Entry Trailing Stop Trails { Trail Step (Input) } 2 . Lot Size { Input } 3 . Take Profit { Input } 4 . Max Number of Trades { Input } 5 . Total Number of Trades per Entry { Input } ---------------------------------------------------------------------------- 6 . Spread Filter { Input }

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
from 1 to 7 day(s)