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
등급
(137)
프로젝트
161
22%
중재
7
14% / 43%
기한 초과
4
2%
작업중
3
개발자 3
등급
(140)
프로젝트
204
80%
중재
17
29% / 47%
기한 초과
10
5%
작업중
4
개발자 4
등급
(31)
프로젝트
41
20%
중재
9
11% / 89%
기한 초과
5
12%
무료
5
개발자 5
등급
(17)
프로젝트
18
28%
중재
4
50% / 25%
기한 초과
1
6%
작업중
6
개발자 6
등급
(38)
프로젝트
40
25%
중재
20
15% / 75%
기한 초과
8
20%
로드됨
7
개발자 7
등급
(3)
프로젝트
1
0%
중재
2
0% / 100%
기한 초과
0
작업중
8
개발자 8
등급
(57)
프로젝트
177
71%
중재
4
100% / 0%
기한 초과
1
1%
무료
9
개발자 9
등급
(74)
프로젝트
86
57%
중재
0
기한 초과
0
무료
10
개발자 10
등급
(27)
프로젝트
27
26%
중재
2
0% / 50%
기한 초과
1
4%
무료
11
개발자 11
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
비슷한 주문
THE IDEA OF THE INDICATOR Create A Standard ZigZag Auto Fibo Indicator Combined With A ZigZag Fibonacci Time Zone Indicator Which Has The Specified Levels Written In The Indicator Strategy TEXT FILE/DOCUMENT HOW DOES THE INDICATOR KNOW AN UPTREND MOVEMENT? If Price Hasn't Break Through The 123.6% Level Of The Recent Static Uptrend Zig Zag Fibo Retracement Tool Then The Indicator Knows That The Market Is In An Uptrend
Market entries are only performed between the hours of 8pm est to 10pm est At 8pm the very immediate high and low on the 15 min time frame is marked out Price has to break either the high or low before a trade is considered Selling Execution: After crossing the high on the 1 min time frame I’m looking for there to be a market structure shift with displacement (volume) to show price wants to go in the selling
I need a good programmer who can create an EA that can filter fake trade signals using RSI filter and place trades using double moving average crossover. filter trade signals on higher time frame and place trades on lower timeframe
I have an indicator i will like to view in form of dashboard across various timeframes, i also will like a push notifications alert feature that will appear on my mt4 mobile to keep track of my trading pairs
Make ea 30+ USD
I want close option signal option even when tp and sl is active with take profit stop loss and trailing stop loss. time filter, auto lots x balance. i get paid on 00:00 uk time so i can send the agreement
i get paid in 12 hour too send agreement Once the Tp or stop loss or trailing sl is hit a new order is placed in the direction of where the Tp and sl or tsl is hit immediately So trail profits until close and open new trade in reverse direction immediately and trail until close again points for trailing sl, tp and sl I want the trailing stop too have two different functions one is that it’s trails from the entry
// @version= 5 strategy ( "EMA Crossover Strategy with 1:1.6 Risk-Reward" , overlay = true ) // Define the EMAs shortEma = ta.ema ( close , 10 ) longEma = ta.ema ( close , 20 ) // Plot the EMAs on the chart plot ( shortEma , color = color.blue , title = "10 EMA" ) plot ( longEma , color = color.red , title = "20 EMA" ) // Calculate the crossover conditions longCondition = ta.crossover ( shortEma , longEma )
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
Hello, I am looking for a highly skilled and experienced MT4 developer to assist with transferring a strategy currently coded in Pine Script to MetaTrader 4 (MT4). The project requires a professional who can handle this project successfully. I am looking for a dedicated and professional developer who can deliver high-quality results. If you have any questions or need further details about the project, feel free to
Hello, I am looking for a highly skilled and experienced MT5 developer to assist with modifying an existing MT5 file. I am looking for a dedicated and professional developer who can deliver high-quality results. If you have any questions or need further details about the project, feel free to reach out. Thank you for your time and consideration. I look forward to working with the right expert to bring this project to

프로젝트 정보

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