├── .gitignore ├── LICENSE ├── README.md ├── bootstrap.py ├── config ├── currencies.py ├── instruments.py ├── portfolios.py ├── settings.py.template ├── spots.py └── strategy.py.template ├── core ├── __init__.py ├── basestore.py ├── contract_store.py ├── currency.py ├── data_feed.py ├── hdfstore.py ├── ib_connection.py ├── instrument.py ├── logger.py ├── spot.py └── utility.py ├── data ├── __init__.py ├── data_provider.py ├── db_mongo.py ├── ib_provider.py ├── providers_factory.py └── quandl_provider.py ├── docs ├── Getting started with Interactive Brokers.ipynb ├── How our system works.ipynb ├── How to test new rules.ipynb ├── Introduction to Trend Following.ipynb ├── Rolling & Carry.ipynb └── Working with Prices.ipynb ├── download.py ├── download.sh ├── pytest.ini ├── pytest.sh ├── requirements.txt ├── scheduler.py ├── scripts └── jupyter_extensions.sh ├── tests └── test_portfolio.py ├── trade.sh ├── trading ├── __init__.py ├── account.py ├── accountcurve.py ├── bootstrap.py ├── bootstrap_portfolio.py ├── ibstate.py ├── portfolio.py ├── rules.py └── start.py └── validate.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/README.md -------------------------------------------------------------------------------- /bootstrap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/bootstrap.py -------------------------------------------------------------------------------- /config/currencies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/config/currencies.py -------------------------------------------------------------------------------- /config/instruments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/config/instruments.py -------------------------------------------------------------------------------- /config/portfolios.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/config/portfolios.py -------------------------------------------------------------------------------- /config/settings.py.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/config/settings.py.template -------------------------------------------------------------------------------- /config/spots.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/config/spots.py -------------------------------------------------------------------------------- /config/strategy.py.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/config/strategy.py.template -------------------------------------------------------------------------------- /core/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /core/basestore.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/core/basestore.py -------------------------------------------------------------------------------- /core/contract_store.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/core/contract_store.py -------------------------------------------------------------------------------- /core/currency.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/core/currency.py -------------------------------------------------------------------------------- /core/data_feed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/core/data_feed.py -------------------------------------------------------------------------------- /core/hdfstore.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/core/hdfstore.py -------------------------------------------------------------------------------- /core/ib_connection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/core/ib_connection.py -------------------------------------------------------------------------------- /core/instrument.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/core/instrument.py -------------------------------------------------------------------------------- /core/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/core/logger.py -------------------------------------------------------------------------------- /core/spot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/core/spot.py -------------------------------------------------------------------------------- /core/utility.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/core/utility.py -------------------------------------------------------------------------------- /data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/data_provider.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/data/data_provider.py -------------------------------------------------------------------------------- /data/db_mongo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/data/db_mongo.py -------------------------------------------------------------------------------- /data/ib_provider.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/data/ib_provider.py -------------------------------------------------------------------------------- /data/providers_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/data/providers_factory.py -------------------------------------------------------------------------------- /data/quandl_provider.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/data/quandl_provider.py -------------------------------------------------------------------------------- /docs/Getting started with Interactive Brokers.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/docs/Getting started with Interactive Brokers.ipynb -------------------------------------------------------------------------------- /docs/How our system works.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/docs/How our system works.ipynb -------------------------------------------------------------------------------- /docs/How to test new rules.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/docs/How to test new rules.ipynb -------------------------------------------------------------------------------- /docs/Introduction to Trend Following.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/docs/Introduction to Trend Following.ipynb -------------------------------------------------------------------------------- /docs/Rolling & Carry.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/docs/Rolling & Carry.ipynb -------------------------------------------------------------------------------- /docs/Working with Prices.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/docs/Working with Prices.ipynb -------------------------------------------------------------------------------- /download.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/download.py -------------------------------------------------------------------------------- /download.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/download.sh -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/pytest.ini -------------------------------------------------------------------------------- /pytest.sh: -------------------------------------------------------------------------------- 1 | python -m pytest 2 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/requirements.txt -------------------------------------------------------------------------------- /scheduler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/scheduler.py -------------------------------------------------------------------------------- /scripts/jupyter_extensions.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/scripts/jupyter_extensions.sh -------------------------------------------------------------------------------- /tests/test_portfolio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/tests/test_portfolio.py -------------------------------------------------------------------------------- /trade.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/trade.sh -------------------------------------------------------------------------------- /trading/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /trading/account.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/trading/account.py -------------------------------------------------------------------------------- /trading/accountcurve.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/trading/accountcurve.py -------------------------------------------------------------------------------- /trading/bootstrap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/trading/bootstrap.py -------------------------------------------------------------------------------- /trading/bootstrap_portfolio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/trading/bootstrap_portfolio.py -------------------------------------------------------------------------------- /trading/ibstate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/trading/ibstate.py -------------------------------------------------------------------------------- /trading/portfolio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/trading/portfolio.py -------------------------------------------------------------------------------- /trading/rules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/trading/rules.py -------------------------------------------------------------------------------- /trading/start.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/trading/start.py -------------------------------------------------------------------------------- /validate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrism2671/PyTrendFollow/HEAD/validate.py --------------------------------------------------------------------------------