Help fixing EA and adding horizontal line

작업 종료됨

실행 시간 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
등급
(125)
프로젝트
146
23%
중재
5
0% / 60%
기한 초과
4
3%
로드됨
3
개발자 3
등급
(138)
프로젝트
199
80%
중재
17
29% / 47%
기한 초과
10
5%
작업중
4
개발자 4
등급
(31)
프로젝트
41
20%
중재
9
11% / 89%
기한 초과
5
12%
무료
5
개발자 5
등급
(16)
프로젝트
17
29%
중재
3
67% / 33%
기한 초과
0
로드됨
6
개발자 6
등급
(37)
프로젝트
40
25%
중재
20
15% / 75%
기한 초과
8
20%
로드됨
7
개발자 7
등급
(3)
프로젝트
1
0%
중재
2
0% / 100%
기한 초과
0
작업중
8
개발자 8
등급
(55)
프로젝트
163
69%
중재
4
100% / 0%
기한 초과
1
1%
무료
9
개발자 9
등급
(64)
프로젝트
76
55%
중재
0
기한 초과
0
무료
10
개발자 10
등급
(27)
프로젝트
27
26%
중재
2
0% / 50%
기한 초과
1
4%
무료
11
개발자 11
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
비슷한 주문
Witam Szanownych Freelancerów, Mam problem z konwersją strategii EA z MQL4 do MQL5. W zasadzie konwertuje za pomocą skryptu: mq4to5rewrite_sample_v4_2 kończy się sukcesem, ale daje wynik w pliku mq5, który nie daje się skompilować. System występowania o błędach, których ja z braku dostępu do języka MQL nie jest możliwy do zastosowania. W związku z tym mam prośbę o: a) konwersję i przygotowanie pliku żródłowego MQL5
PLEASE NOT THAT MY BUDGET IS 60usd FOR BOTH MT4 AND MT4 PLATFORMS The EA should have 1. An option that I can change it parameters, that's the period, method and application 2. The EA should sell when on every bullish candle that closes under the MA 3. The EA should buy on every bearish candle that forms Above the EA. It's should close trades on reverse cross. I mean when it's in a buy trade and crosses the MA for a
MT4 to Telegram 30 - 50 USD
Hello, I want to add a system send messages to Telegram Send a message with a specific picture and details of the new signal When closing with a profit, send the details of the closing and profit with a specific picture And close with a loss and send a specific picture, in addition to the details of the closure and the amount of the loss
Hi Dear developpers, I've an EA that was working very well with the previous versions of MT4. But since, they have updated their platforms, my EA it's not working anymore. I've tried to use those old MT4 versions but there are just temporary. So i've decided to updated this EA so i can use it on the newest version of MT4 (1420) and those who will come after it. I also want to implement new inputs in it. I also want
GOOD DAY DEVELOPERS I NEED A GOOD DEVELOPER WHO HAS AN INDICATOR FOR BOOM AND CRASH UP / DOWN TRENDS FOR ATLEAST 10 CANDLESTICK WITHOUT BEING SPIKED ... TO DEVELOP AN EA BASED ON THAT INDICATOR YOU HAVE, IF YOU HAVE IT PLEASE I AM IN NEED OF IT
Hey greetings My pleasure to met you all .I would like to convert a public tradingview pinescript indicator to MT5 Expert Advisor based on my. Requirements/specification.Kindly bid and let discuss about the project
A robot 30 - 65 USD
Hi I am looking for developer who can make me Mt4 Ea i have 2types of analysis methods i want to add and also want to attach image with Ea like when i attach my to any currency pair the chart changes to my picture Of robot which i attached to my Ea and for proper all settings i want add i will tell u message me
I have multiple mt4 / Mt5 accounts on several VPS. My initial thought is using Google Sheets or Excel and have the data pushed VIA an EA (1 instance installed on each MT4 / Mt5 account and pushed to the same Sheet) using api. One sheet would display the general data and the subsequent sheets would display more detailed data for every account loaded up. I’d probably be working with a programmer who can provide a
hi.. i have a pin script (TV) but some lines in the code needs to be fixed,,, i will attach the file thanks very much in advance, Also there will be more project in front, so I need a very dedicated developer
I need an Expert Advisor that can read trade signals from a Telegram Channel and then execute those trades. My telegram bot has admin access to the Telegram Channel The EA needs the following functionality: Position Size: Auto: + Have fixed lot size set in settings. + Have lot size by % of account (set in settings) Manual: + From lot size set in trade signals message. + From lot size by % of account from trade

프로젝트 정보

예산
30+ USD
개발자에게
27 USD
기한
에서 1  7 일