stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

News event monitor EA that closes/disables trading
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5039
Page 10 of 11
Author:  renexxxx [ Thu May 04, 2023 1:02 am ]
Post subject:  Re: News event monitor EA that closes/disables trading

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
Author:  Howard [ Wed May 10, 2023 5:02 pm ]
Post subject:  Re: News event monitor EA that closes/disables trading

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
Author:  renexxxx [ Thu May 11, 2023 12:31 am ]
Post subject:  Re: News event monitor EA that closes/disables trading

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.
Author:  Howard [ Thu May 11, 2023 6:19 am ]
Post subject:  Re: News event monitor EA that closes/disables trading

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

Regards,
Author:  renexxxx [ Thu May 11, 2023 9:37 am ]
Post subject:  Re: News event monitor EA that closes/disables trading

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.
Author:  Howard [ Thu May 11, 2023 10:40 am ]
Post subject:  Re: News event monitor EA that closes/disables trading

Thanks all sorted.
Most appreciated
Also had to sort out firewall.
Brilliant EA just perfectly executed.
Regards,
Author:  fastboy85 [ Tue Aug 08, 2023 10:13 am ]
Post subject:  Re: News event monitor EA that closes/disables trading

Hello!
Can you add a function to show in chart the cooming news? Thanks in advance!!
Author:  aquafana [ Wed May 15, 2024 5:43 pm ]
Post subject:  Re: News event monitor EA that closes/disables trading

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!!!!!
Author:  raresforex1 [ Thu May 16, 2024 7:02 am ]
Post subject:  Re: News event monitor EA that closes/disables trading

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)
Author:  aquafana [ Thu May 16, 2024 9:17 am ]
Post subject:  Re: News event monitor EA that closes/disables trading

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?
All times are UTC Page 10 of 11