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 5 of 11
Author:  mntiwana [ Sat Feb 24, 2018 4:48 pm ]
Post subject:  News event monitor EA that closes/disables trading

Aside from the facts and best recommendations from both the experts (renexxxx,SteveHopwood)
Posting here a very old code (EAs) from 2008 posts-just for your curiosity and trying luck/experimenting
EAs are about of same idea,almost some details and explanations included within original descriptive text/source (in pictures) and some guidance/logic included in the code lines too if you can read from the code lines too
1 : straddle & trail_v3.31_gbpusd nmc
2 : The Best
The second EA (The Best) is same thing but renamed and for "EUR/JPY" pair as author claims
Note : After posting i noticed the sequence of descriptive pictures inverted,the first picture at top view able at bottom,so read as inverted - and some compile warnings still exist in both codes,keep in mind,though a lot of error removed for to clean the code and make it workable in new Empty4 terminal
Author:  kajironpu [ Thu Mar 15, 2018 8:35 am ]
Post subject:  News event monitor EA that closes/disables trading

Hello, I have some questions. Your news event monitor EA is so nice and I love it.
By the way, if Disable trading on news is true, does all news affect?
I mean if I want to stop EA (not close), I want to stop EA just for HIGH IMPACT NEWS only,
How can I set it?
I again thank you for your support.
Author:  renexxxx [ Thu Mar 15, 2018 10:07 am ]
Post subject:  News event monitor EA that closes/disables trading

kajironpu » Thu Mar 15, 2018 6:35 pm wrote: I mean if I want to stop EA (not close), I want to stop EA just for HIGH IMPACT NEWS only,
How can I set it?
I again thank you for your support.
What you can do is this:

Either:
  1. Set:

    UseNews = true
    CloseOnHighImpactNews = true
    CloseOnMediumImpactNews = false
    CloseOnLowImpactNews = false
    CloseOpenTrades = false
    ClosePendingTrades = false
    DisableTradingOnNews = true
    ReenableTradingAfterNews = true
    DisableGlobalVariableOnNews = false
    UnsetGlobalVariableAfterNews = false
  2. Or
  3. As above ... but the last four become:

    DisableTradingOnNews = false
    ReenableTradingAfterNews = false
    DisableGlobalVariableOnNews = true
    UnsetGlobalVariableAfterNews = true
In the first instance, it will disable trading altogether SecondsBeforeHighImpact seconds before the HIGH IMPACT news is released. For the second option to work, your EA must have been coded to inspect a certain Global Variable at the start of its execution loop, and instantly return from that loop if that Global Variable has been set. In this case, your EA can continue monitoring and closing existing trades during the HIGH IMPACT news period, but --as long as it has been coded that way-- will forego opening new trades.

Hope this is clear.
Author:  kajironpu [ Fri Mar 16, 2018 5:30 am ]
Post subject:  News event monitor EA that closes/disables trading

Thank you for your kind support.
I will setup and see how it will works.
By the way I can not find "DisableGlobalVariableOnNews" in your ver1.2.
Is it the same as "SetGlobalVariableOnNews" ?

I will attach a picture.

Thanks!
Author:  renexxxx [ Fri Mar 16, 2018 7:56 am ]
Post subject:  News event monitor EA that closes/disables trading

kajironpu » Fri Mar 16, 2018 3:30 pm wrote: Is it the same as "SetGlobalVariableOnNews" ?
Yes, it is. That was a slip of the keyboard from my side. R.
Author:  pintubesar [ Mon Jul 02, 2018 11:03 pm ]
Post subject:  News event monitor EA that closes/disables trading

this is great !!
thanks rene :!!:
Author:  fselvan2000 [ Tue Oct 09, 2018 4:46 am ]
Post subject:  News event monitor EA that closes/disables trading

hi All,

i am new to this forum.

can i use this to enable trading only during the high impact news? becos i have a news trader ea but i don’t have any settings there to control this way…

Thanks
Author:  Kekospain [ Sun Apr 07, 2019 4:16 pm ]
Post subject:  News event monitor EA that closes/disables trading

Hi. I installed the indicator and I think that it does not work correctly and does not show any news. I do not know if ForexFactory has stopped giving xml support to all those who got the news from there.
Can you verify that it works?
Can you change the news source?
Thank you very much and greetings.
Author:  tomele [ Sun Apr 07, 2019 4:52 pm ]
Post subject:  News event monitor EA that closes/disables trading

Hi.

FF has changed the calendar XML download location last week. I am sure René will care for it as soon as he has time.

Cheers
Thomas
Author:  Kekospain [ Sun Apr 07, 2019 5:16 pm ]
Post subject:  News event monitor EA that closes/disables trading

tomele » Sun Apr 07, 2019 4:52 pm wrote:Hi.

FF has changed the calendar XML download location last week. I am sure René will care for it as soon as he has time.

Cheers
Thomas
Thank you very much first.
Well, I hope with joy that René makes the necessary changes so that the EA works again because it is very necessary.
A greeting.
Please, leave a message here when going to salute it.
Thank you !!
All times are UTC Page 5 of 11