Hi,
I'm find EA for close all order and disable auto trade before impact news 1 hours and enable auto trade after 1 hours
Can any share for me
Thankyou so much
[REQUEST] EA to close all order before news
- dave737
- Posts: 1
- Joined: Tue Apr 12, 2016 10:15 pm
- Location: Gold Coast Australia
[REQUEST] EA to close all order before news
Enclosed - I presume you need opened orders closed as well as pending orders deleted.
You do not have the required permissions to view the files attached to this post.
-
dontstop
- Posts: 2
- Joined: Sun Jul 31, 2016 4:04 pm
[REQUEST] EA to close all order before news
Hey Dave
Even though I did not request this originally. I would like to take you for this EA. It is exactly what I have been looking for
Merry Christmas!
Even though I did not request this originally. I would like to take you for this EA. It is exactly what I have been looking for
Merry Christmas!
-
dontstop
- Posts: 2
- Joined: Sun Jul 31, 2016 4:04 pm
[REQUEST] EA to close all order before news
Hey Dave, I take that back. I tested this tonight and it doesn't seem to close all trades and (leaving 2 or 3 trades open), the auto trade button is still showing enabled and I see one trade was made a few minutes after after the scheduled new time.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
[REQUEST] EA to close all order before news
See if Rene's code at http://www.stevehopwoodforex.com/phpBB3 ... =99&t=4304 can help. Getting to grips with the code is something on my todo list. Rene is one of the coding stars at SHF so you cannot do better than to hack his code.dontstop » Thu Dec 22, 2016 11:24 pm wrote:Hey Dave, I take that back. I tested this tonight and it doesn't seem to close all trades and (leaving 2 or 3 trades open), the auto trade button is still showing enabled and I see one trade was made a few minutes after after the scheduled new time.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
- renexxxx
- Trader
- Posts: 860
- Joined: Sat Dec 31, 2011 3:48 am
[REQUEST] EA to close all order before news
Yes the NewsEA.mq4 would be a good place to start. Alternatively, you can wait until I'm back in January when I can provide you the code.
Aloha!
Aloha!
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
[REQUEST] EA to close all order before news
renexxxx » Fri Dec 23, 2016 7:12 pm wrote:Yes the NewsEA.mq4 would be a good place to start. Alternatively, you can wait until I'm back in January when I can provide you the code.
Aloha!
You watching this space guys?
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
- renexxxx
- Trader
- Posts: 860
- Joined: Sat Dec 31, 2011 3:48 am
[REQUEST] EA to close all order before news
I promised to provide some code for this EA, so here it is.
The OP requested the following and I quote:
Have fun!.
The OP requested the following and I quote:
This by itself is a vague, inaccurate specification for an EA. What news (ie. for which currencies) should trigger the close of some trades. Which trades should be closed, if it is determined that some news will be released. In the attached CloseOnNewsEA, this can all be configured with the following parameters:befusion » Tue Nov 01, 2016 2:36 am wrote: I'm find EA for close all order and disable auto trade before impact news 1 hours and enable auto trade after 1 hours
- UseNews: Overall On/Off switch for News Filter
- CurrenciesToClose: Comma-separated list of currencies to watch/close. Leave blank for all.
If this parameter is left blank, (High/Medium/Low-impact) news for any currency, will trigger the closure of all trades, at the specified number of seconds before the news release. If the parameter is set to eg. EUR,USD, it will only check for news items for these two currencies and if found, it will only close currency pairs that have either 'EUR' or 'USD' in their name.
- CloseOnHighImpactNews: If true, act on HIGH impact news
- CloseOnMediumImpactNews: If true, act on MEDIUM impact news
- CloseOnLowImpactNews: If true, act on LOW impact news
- CloseOpenTrades: If true, and there is upcoming news (as specified by previous parameters), close open trades. Again, the trades it will close will depend on the CurrenciesToClose parameter.
- ClosePendingTrades: If true, and there is upcoming news, delete pending trades.
- SecondsBeforeHighImpact: Specifies the time-window before the HIGH Impact news event, in which the EA must close trades. Only relevant if CloseOnHighImpactNews is true.
- SecondsBeforeMediumImpact: Specifies the time-window before the MEDIUM Impact news event, in which the EA must close trades. Only relevant if CloseOnMediumImpactNews is true.
- SecondsBeforeLowImpact: : Specifies the time-window before the LOW Impact news event, in which the EA must close trades. Only relevant if CloseOnLowImpactNews is true.
- SecondsAfterHighImpact: Specifies the time-window after the HIGH Impact news event, in which the EA must close trades.
- SecondsAfterMediumImpact: Specifies the time-window after the MEDIUM Impact news event, in which the EA must close trades.
- SecondsAfterLowImpact: Specifies the time-window after the LOW Impact news event, in which the EA must close trades.
- MagicNumberToClose: Specifies the MagicNumber of the trades to close. -1 means all magic numbers
- DisableTradingOnNews: If true and it has been determined that there is upcoming news, disable "AutoTrading".
- ReenableTradingAfterNews: If true and there is no upcoming news, make sure that "AutoTrading" is enabled.
- BrokerGMTOffSet: GMT Offset in hours of the trade server. This is needed to convert the FFCal scheduled news times (which are listed in GMT) to trade server times.
Have fun!.
You do not have the required permissions to view the files attached to this post.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
[REQUEST] EA to close all order before news
Fantastic stuff again Rene. Absolutely brilliant.
Thanks again.
I shall copy the contents of this post into a new thread in your own forum later on - we need it where it will not get lost in the mists of time.

I shall copy the contents of this post into a new thread in your own forum later on - we need it where it will not get lost in the mists of time.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
[REQUEST] EA to close all order before news
I have opened a new thread for Rene at http://www.stevehopwoodforex.com/phpBB3 ... 30#p150930. so please report any bugs that surface there. I am locking this thread to prevent having to duplicate anything.

Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.