News event monitor EA that closes/disables trading

Rene's trading Expert Advisors
Post Reply
mntiwana
Trader
Posts: 17
Joined: Fri Aug 16, 2013 11:57 am

News event monitor EA that closes/disables trading

Post by mntiwana »

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
You do not have the required permissions to view the files attached to this post.
kajironpu
Posts: 5
Joined: Sat Feb 10, 2018 12:33 pm

News event monitor EA that closes/disables trading

Post by kajironpu »

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.
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

News event monitor EA that closes/disables trading

Post by renexxxx »

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.
kajironpu
Posts: 5
Joined: Sat Feb 10, 2018 12:33 pm

News event monitor EA that closes/disables trading

Post by kajironpu »

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!
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

News event monitor EA that closes/disables trading

Post by renexxxx »

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.
pintubesar
Posts: 3
Joined: Fri May 11, 2018 2:20 pm

News event monitor EA that closes/disables trading

Post by pintubesar »

this is great !!
thanks rene :!!:
fselvan2000
Posts: 1
Joined: Mon Oct 08, 2018 6:50 am

News event monitor EA that closes/disables trading

Post by fselvan2000 »

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
Kekospain
Posts: 6
Joined: Thu Apr 04, 2019 7:08 pm

News event monitor EA that closes/disables trading

Post by Kekospain »

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.
User avatar
tomele
Administrator
Posts: 1166
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

News event monitor EA that closes/disables trading

Post by tomele »

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
Happy pippin, Thomas :-BD

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Keep the coder going: Donate
Kekospain
Posts: 6
Joined: Thu Apr 04, 2019 7:08 pm

News event monitor EA that closes/disables trading

Post by Kekospain »

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 !!
Post Reply

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