News event monitor EA that closes/disables trading

Rene's trading Expert Advisors
Post Reply
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

Re: News event monitor EA that closes/disables trading

Post by renexxxx »

venturist wrote: Wed May 03, 2023 7:41 pm Thank you for a much needed EA. Now if there was a way to auto set the GMT broker time...then boom! :rocket:
You can try if this works:

Code: Select all

datetime GMTToServer( datetime GMTTime ) {

   datetime brokerGMTOffset = TimeCurrent() - TimeGMT();
   
   return( GMTTime + brokerGMTOffset); // + BrokerGMTOffSet*60*60 );
}
If it does, you can out comment the BrokerGMTOffSet parameter, like so:

Code: Select all

//input int               BrokerGMTOffSet              = 2;          // Broker time GMT OffSet in hours
Howard
Posts: 3
Joined: Wed May 10, 2023 1:33 pm

Re: News event monitor EA that closes/disables trading

Post by Howard »

Hello
Thank you for allowing me onto this great site.
I have downloaded the "News event monitor that closes trading"
I have set it up on a blank Empty4 chart.
I have another chart open running a basic trade.
The EA was set up for low impact news.
The EA is configured correctly (I think) but there was no action from the EA when the news event happend.
I have checked times and plus there were no errors or naughty messages in the Empty4 tabs.

Please help as I would love to get the EA to function as it should.
I have attached files.
Please help.
Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

Re: News event monitor EA that closes/disables trading

Post by renexxxx »

Howard wrote: Wed May 10, 2023 5:02 pm I have checked times and plus there were no errors or naughty messages in the Empty4 tabs.
Which br0ker do you use? For GP the current GMT offset is currently 3 hours, not 2. Check your times again and report back.
Howard
Posts: 3
Joined: Wed May 10, 2023 1:33 pm

Re: News event monitor EA that closes/disables trading

Post by Howard »

Thank you for your response.
I use IC markets and their offset = 2 Hours.

Regards,
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

Re: News event monitor EA that closes/disables trading

Post by renexxxx »

You are mistaken. Check the time in your market watch panel:

2023-05-11_193206.png

Then Google GMT Time

2023-05-11_193247.png

take the difference. Most br0kers are now at GMT+3. IC Markets is too. Subject closed.
You do not have the required permissions to view the files attached to this post.
Howard
Posts: 3
Joined: Wed May 10, 2023 1:33 pm

Re: News event monitor EA that closes/disables trading

Post by Howard »

Thanks all sorted.
Most appreciated
Also had to sort out firewall.
Brilliant EA just perfectly executed.
Regards,
fastboy85
Posts: 1
Joined: Tue Aug 08, 2023 9:01 am

Re: News event monitor EA that closes/disables trading

Post by fastboy85 »

Hello!
Can you add a function to show in chart the cooming news? Thanks in advance!!
aquafana
Posts: 2
Joined: Wed May 15, 2024 5:18 pm

Re: News event monitor EA that closes/disables trading

Post by aquafana »

Hello,
This option for only EA that I have source and add the global variable for this right? "SetGlobalVariable News" If this is third party EA how to make this working?
Thank for your reply!!!!!
raresforex1
Posts: 1
Joined: Wed May 15, 2024 11:47 pm

Re: News event monitor EA that closes/disables trading

Post by raresforex1 »

Am I the only one with the issue that the EA closes the trades only on the pair it's attached to? Even though should close any trade that contains the specific news filter report (ex: if the news filter is attached to usdchf and I have xauusd open trade, it does not close it)

Also should be useful a small dashboard or some lines with the upcoming news(this could also be a confirmation if the GMT and XML are working properly)
aquafana
Posts: 2
Joined: Wed May 15, 2024 5:18 pm

Re: News event monitor EA that closes/disables trading

Post by aquafana »

raresforex1 wrote: Thu May 16, 2024 7:02 am Am I the only one with the issue that the EA closes the trades only on the pair it's attached to? Even though should close any trade that contains the specific news filter report (ex: if the news filter is attached to usdchf and I have xauusd open trade, it does not close it)

Also should be useful a small dashboard or some lines with the upcoming news(this could also be a confirmation if the GMT and XML are working properly)
Oh This will big issue with person trade many symbol like me!!!
Anyone can fix it?
Post Reply

Return to “Auto-trading EA's and EA monitors”