Hello, welcome back to my blog about automated trading. Last time
I have talked about my first experience with real money. This experiment is still on going. This week I have made research which connects together gaps and news.
For the source code example, please download repository and update to branch 17-news_gap, changeset 45d83ad6845c. There is an application called GapNewsCollector which you can run and get the full results. It takes a little bit of time to run it.
I have got about 80 messages before gap up and another 80 before gap down.
Example messages before gap up:
For the source code example, please download repository and update to branch 17-news_gap, changeset 45d83ad6845c. There is an application called GapNewsCollector which you can run and get the full results. It takes a little bit of time to run it.
Experiment set up
I have looked through all the stocks under http://finviz.com/screener.ashx?v=111&f=fa_debteq_u0.5,sh_avgvol_o500&ft=4 (currently 674 stocks). Then I have looked for the gaps and connect them with the news which we published over night right before the gap. Let's write this into more formal.
Definition: Today is defined as a trading day I am looking at (then there is notation today.open, today.close...). Tomorrow is defined as a first trading day after today and has same notation for prices.
- If today.close < $10, then skip
- Gap up is considered when today.close * 1.3 < tomorrow.open
- Gap down is considered when today.close * 0.7 > tomorrow.open
- If there is a gap up or gap down between today and tomorrow, then I am collecting news starting from today 16:00 (inclusive) and ending at tomorrow 9:30 (exclusive).
Results
Now regarding the result. Full result is too long for publishing it here, but you can get it by running the application.I have got about 80 messages before gap up and another 80 before gap down.
Example messages before gap up:
- Jazz Pharmaceuticals Nears Deal to Buy Celator for About $1.5 Billion
- Cvent Enters into Definitive Agreement to be Acquired by Vista Equity Partners for $1.65 Billion
- Salesforce to buy Demandware in $2.8 bln deal
- Advantages of Oil Search-InterOil acquisition
- Papua New Guinea Pioneer Sees $3 Billion Savings on Gas Deal
- Alkermes Depression Drug Failure Crimps Future Growth Outlook
- Why These 5 Stocks Are Plummeting Today
- What is Going On With These Falling Stocks?
- Investor Alert: Glancy Prongay & Murray LLP Commences Investigation on Behalf of Chiasma, Inc. Investors
- Google Policy Changes Are Hurting Bankrate
- 'to' - 49 times before the gap up, 7 times before the gap down
- 'buy' - 24 times before the gap up, 0 times before the gap down
- 'deal' - 20 times before the gap up, 0 times before the gap down
- 'billion' - 19 times before the gap up, 0 times before the gap down
- 'for' - 25 times before the gap up, 7 times before the gap down
- 'pharmaceuticals' - 14 times before the gap up, 0 times before the gap down
- 'alkermes' - 0 times before the gap up, 14 times before the gap down
- 'today' - 1 times before the gap up, 13 times before the gap down
- 'of' - 13 times before the gap up, 25 times before the gap down
- 'celator' - 10 times before the gap up, 0 times before the gap down
Conclusion
Seems there is a way how to figure out which news are positive and which are negative. For further research I will try to find common sub phrases and connect them with grow or loss of the stock. Therefore next challenge is to make interface which allows to break message into phrases rather than just words.
That's it for today. Next time I will look for alternative way how to screen for companies. Thank you for reading!
No comments:
Post a Comment