A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/phubaba/pythalesians below:

phubaba/pythalesians: Python Open Source Financial Library to backtest trading strategies, plot charts, seamlessly download market data, analyse market patterns and much more!

PyThalesians is a Python financial library developed by the Thalesians (http://www.thalesians.com). I have used the library to develop my own trading strategies and I've included simple samples which show some of the functionality including an FX trend following model and other bits of financial analysis.

There are many open source Python libraries for making trading strategies around! However, I've developed this one to be as flexible as possible in terms of what types of strategies you can develop with it. In addition, a lot of the library can be used to analyse and plot financial data for broader based analysis, of the type that I've had to face being in markets over the years. Hence, it can be used by a wider array of users.

At present the PyThalesians offers:

Below we give some examples of analysis we've done with PyThalesians. Some of these can be run by scripts in the examples folder.

Using PyThalesians to create a simple FX trend following strategy (you can run this backtest using cashbacktest_examples.py)

Using PyThalesians to plot & calculate USD/JPY intraday moves around non-farm payrolls over past 10 years

Using PyThalesians to calculate intraday vol in major FX crosses by time of day

Using PyThalesians to create the Thalesians CTA index (trend following), which replicates Newedge CTA index benchmark

Using PyThalesians with Cufflinks (Plotly wrapper) to plot interactive Plotly chart (using plotly_examples.py) - click the below to get to the interactive chart

Using PyThalesians to plot via Bokeh EUR/USD in the 3 hours following FOMC statements

Using PyThalesians to plot combination of bar/line/scatter for recent equity returns (you can run this analysis using bokeh_examples.py)

Using PyThalesians and PyFolio to plot return statistics of FX CTA strategy (you can run this analysis using strategyfxcta_example.py)

Using PyThalesians to plot with Plotly map of USA unemployment rate by state (using FRED data) (you can run this analysis using histecondata_examples.py)

Using PyThalesians to plot G10 CPI YoY rates (using FRED data) (you can run this analysis using histecondata_examples.py)

Using PyThalesians to plot rolling correlatons in FX (using Bloomberg data) (you can run this analysis using correlation_examples.py)

Using PyThalesians to plot seconds data around last NFP (using Bloomberg data) (you can run this analysis using tick_examples.py)

Using PyThalesians to plot AUD/USD total returns from spot & deposit data (comparing with spot and Bloomberg generated total return index) (you can run this analysis using indicesfx_examples.py)

PyThalesians has been tested on Windows 8 & 10, running Bloomberg Terminal software. I currently run PyThalesians using Anaconda 2.5 (Python 3.5 64bit) on Windows 10. Potentially, it could also work on the Bloomberg Server API (but I have not explicitly tested this). I have also tried running it on Ubuntu and Mac OS X (excluding Bloomberg API)

Major requirements

Once installed please make sure you edit pythalesians.util.constants file for the following variables:

pip install git+https://github.com/thalesians/pythalesians.git
Examples for PyThalesians

After installation, the easiest way to get started is by looking at the example scripts. I am hoping to add some Jupyter notebooks, illustrating how to use the library too. The example scripts show how to:

The Thalesians are a think tank of dedicated professionals with an interest in quantitative finance, economics, mathematics, physics and computer science, not necessarily in that order. We run quant finance events in London, New York, Budapest, Prague and Frankfurt (join our Meetup.com group at http://events.thalesians.com). We also publish research on systematic trading and also consult in the area. One of our clients is RavenPack, a major news analytics vendor.

Major contributors to PyThalesians Supporting PyThalesians project

If you find PyThalesians useful (and in particular if you are commercial company) please consider supporting the project through sponsorship or by using our consultancy/research services in systematic trading. If you would like to contribute to the project, also let me know: it's a big task to try to build up this library on my own!

For the UK election Plot.ly code - please visit https://github.com/plotly/IPython-plotly/tree/master/notebooks/ukelectionbbg

Future Plans for PyThalesians

We plan to add the following features:

More generally, we want to:

End of note


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4