Skip to content

Fully automated trading system, strategy based on Kalman filter

Notifications You must be signed in to change notification settings

jacobeskin/Kalman-Filter-Trading-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automatic trading system with Python(2)

Description

Simple Kalman filter strategy for trading a portfolio of 5 currency pairs. Will add a proper description at some later point in time.

Current status

Code works (or should work as is) a list of tuples denoting Fridays is added manually into the oTradingSystem.py script, this is to be corrected next. Also the Kalman filter "burn-in" has to be specified the same way, this also denotes the window from which rolling average and standard deviation of the portfolio are calculated.

Since the program skips Friday 5pm EST - Sunday 5pm EST by just waiting a fixed amount of time, the oTradingSystem.py should be run only when trading is active.

So to be fixed next are insertion of data from the command line and ability to start the system whenever. All is dependent on time...

Added possibility to pickle the states if one wants to do maintenance and updates during the weekend for example. Also added some safeguards to handle errors if connection to the broker is cut, something that seems to happen every Thursday at 10pm EST...

Broker used is Oanda, and the API for it is provided by https://github.com/hootnot/oanda-api-v20, it is exellent and easy to use! Thanks hootnot!

Care must be taken, this strategy is not to be used for trading as is unless you hate money.

About

Fully automated trading system, strategy based on Kalman filter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages