
In this course you will learn how to set up Automated Decision Support System but for News. It is highly recommended to being part of Lazy Trading Part 1-2-3-4 courses
Disclaimer!
Goals of this section:
Learn what is web scrapping
Know about limitations
Get some other ideas on how to use it in day to day life
Lecture explains how to clone needed repository
Explaining how to perform web-scrapping from Forex Factory calendar
Automating the R Script to read news events and match to pre-defined events. This will 'stop' trading systems.
Sentiment Analysis 'Polarity Scoring' and Trading
Explain brief idea of application
In the simplified form the idea will be as follows:
Taking trading pair USD/CAD:
... see disclaimer
Lecture would aim to introduce the R script that will be doing the job
Lecture about Trading Robot deployment
Periodic update of demo trading experiment
Analysis of log files obtained so far
Final results of the trading robot FALCON_S
Setup twitter development account
Create and App in twitter developer platform
Code for this section is located in the R_NewsReading repository inside of the folder TWITTER
How to use provided R code to encrypt your access tokens [enabling possibility to use Version Control]
Use the following R scripts:
generate_rsa_key.R - to generate your cryptographic keys
encrypt_api_key.R - to encrypt your access tokens
Using R script setup_twitter.R to test the connection
How to use twitter, generic ideas.
Different ways to extract twitter text:
search terms
tweets from location
Cleaning text, converting to corpus, visualizing as bar chart or wordcloud
Sentiment analysis with more emotions: joy, trust, sadness, anticipation...
A brief theory about usage of sentiment tweets to build regression model and ultimately predict price change
Review code that collect Sentiment Score of the latest 3000 tweets about Tesla together with joined price of that asset
Script aimed to be run every week on weekends. It uses aggregated data to train deep learning model
Using Deep Learning model and independent data to predict and test hypothetical trading strategy outcome! Log the results of the strategy performance to the file
Script aimed to run 1 time every hour. Script is predicting #TeslaMotor price changes based on the sentiment scores of 3000 tweets about #tesla
Objectives of this chapter will be to analyse results of the Sentiment Model predicting Stock price movement
Obtained results after 2 months!
evolution of the model quality
is it valid possible trading strategy or not?
Data Collection started: 2018-12-12
Results after two months: 2019-02-09
Visualize predicted price change versus really occurred one
Proposed lecture to practice reading multiple files from one folder
Reading another set of multiple files
Obtained results after several months
evolution of the model quality
is it valid possible trading strategy or not?
Data Collection started: 2018-12-12
Results after two months: 2019-02-09
Update: 2019-07-17
The course summary
Bonus coupons
About this Course: Read news and Sentiment Analysis
The fifth part of this series will give you the ability to automatically read Forex Calendar for any specific event like US Non-Farm Payroll or when President Trump is going to have a speech. This will provide an ability to consider these events in your trading strategies in a simplest form of disabling the trading robots.
Additional research of this course will be about correlation of Asset's Text data Sentiment to the Asset's price in the future. This research will be conducted on two trading ideas*:
Sentiment difference of News Headers in the US, Canada, GB and it's their currency Pairs.
Sentiment of Twitter data relevant to Tesla Stock prices
As usual provided methods and ideas will help us to practice computer and data science skills:
Webscrap news and analyse their sentiment for trading
Setting up Version Control in our Projects
Know how to automate our R code
Text Sentiment analysis using basic Sentiment Analysis Polarity Scoring and NRC Sentiment Dictionary (8 emotions)
Performing descriptive analysis of the Sentiment Polarity Scoring of the News Headers
Getting Twitter data into R
Deep regression learning to correlate Sentiment scores to the objective variable [performed in h2o deep learning environment]
*There is absolutely no guarantee that proposed methods will work!!!
About the Lazy Trading Courses:
This series of courses is designed to to combine fascinating experience of Algorithmic Trading and at the same time to learn Computer and Data Science! Particular focus is made on building foundation of Decision Support System that can help to automate a lot of boring processes related to Trading.
This project is containing several short courses focused to help you managing your Automated Trading Systems:
Set up your Home Trading Environment
Set up your Trading Strategy Robot
Set up your automated Trading Journal
Statistical Automated Trading Control
Reading News and Sentiment Analysis
Using Artificial Intelligence to detect market status
Building an AI trading system
Update: dedicated R package 'lazytrade' was created to facilitate code sharing among different courses
IMPORTANT:
All courses will be short focusing to one specific topic with very short theoretical explanations. These courses will help to focus on developing strategies by automating boring but important processes for a trader.
Best possible way to take the courses as a series is to reproduce all methods by re-creating automated trading system on PC Windows
What will you learn apart of trading:
While completing these courses you will learn much more rather than just trading by using provided examples:
Learn and practice to use Decision Support System
Be organized and systematic using Version Control and Automated Statistical Analysis
Learn using R to read, manipulate data and perform Machine Learning including Deep Learning
Learn and practice Data Visualization
Learn sentiment analysis and web scrapping
Learn Shiny to deploy any data project in hours
Get productivity hacks
Learn to automate your tasks and scheduling them
Get expandable examples of MQL4 and R code
What these courses are not:
These courses will not teach and explain specific programming concepts in details
These courses are not meant to teach basics of Data Science or Trading
There is no guarantee on bug free programming
Disclaimer:
Trading is a risk. This course must not be intended as a financial advice or service. Past results are not guaranteed for the future.