Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
0 registered members (), 1,012 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Fundamental News Filter #459780
06/04/16 06:27
06/04/16 06:27
Joined: Dec 2014
Posts: 202
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 202
Germany
A well working technical strategy can get completely screwed on fundamental news releases, like the NFP report yesterday which caused a straight 200 Pips ralley. How would I implement a fundamental news filter which can be backtested as well? In this case I would have allowed only trades in the direction of the USD bearish sentiment.

I could provide a text file which contains all release dates, corresponding currencies and allowed directions

....
2016-05-02 23:00 NZD neutral
2016-05-03 8:00 EUR bearish
2016-05-04 14:30 USD

So x hours before 2016-05-04 14:30 all trades should be closed and no new trades should be opened. When the release number is known (some milliseconds after 14:30) an external program will add bearish at the end of the line and the script will know that until y hours after this release, USD may only be sold.

How can I call the simulated date and time during backtesting? In the manual I just found a timer, which I think is useless in this case.

Having fundamental indicators support in Zorro would be a tremendous advantage. One could program powerful news trading strategies like News Straddling with order/trade canceling if the release number is in line with the projected analysts number, fading the news (when data which is normaly not that important like the german Ifo business climate index) doesn't justify the spike or wait for a correction after a spike and then trade in the direction of the spike, riding the second wave.

Re: Fundamental News Filter [Re: Smon] #459782
06/04/16 07:08
06/04/16 07:08
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Read the file into an array of structs containing time and text. At every bar, identify the array element close to the current bar time, and act according to its text.

Re: Fundamental News Filter [Re: jcl] #459785
06/04/16 10:11
06/04/16 10:11
Joined: Dec 2014
Posts: 202
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 202
Germany
Thanks for the hint jcl, I found what I need in the manual now.

Re: Fundamental News Filter [Re: Smon] #459786
06/04/16 11:56
06/04/16 11:56
Joined: Mar 2015
Posts: 335
Rogaland
N
nanotir Offline
Senior Member
nanotir  Offline
Senior Member
N

Joined: Mar 2015
Posts: 335
Rogaland
how/where did you get such a file? It would be interesting to use it in a backtest for many things

Last edited by Nanitek; 06/04/16 12:00.
Re: Fundamental News Filter [Re: nanotir] #459860
06/09/16 00:08
06/09/16 00:08
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline
Senior Member
boatman  Offline
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
Nanitek, you can download economic news release data from myfxbook in CSV format via the economic calendar on that site.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1