Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython

tradingmachine is unavailable in PyPM, because there aren't any builds for it in the package repositories. Click the linked icons to find out why.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
 
Links
Author
License
BSD

TradingMachine

System Message: WARNING/2 (<string>, line 2)

Title underline too short.

TradingMachine
=======

TradingMachine is intend to bring optimization and machine techniques into finance algorithmic trading.

Discussion and Help

TODO

Features

  • Optimization on strategy parameters.
  • PyBrain Integration (Reinforcement Learning, Neural Network ...).
  • TA-Lib Integration (Most common technical analysis available.)
  • Pandas (High speed time series data analysis)

Installation

# You will first need to install TALib. ta-lib is a python wrapper for that. Please refer [TA-Lib](http://ta-lib.org/hdr_doc.html)

TradingMachine can be installed via pip

` pip install numpy pip install matplotlib pip install pandas pip install ta-lib pip install tradingmachine `

If there are problems installing the dependencies, please consider install scipy stack. For Windows, the [Enthought Python Distribution](http://www.enthought.com/products/epd.php) includes most of the necessary dependencies. On OSX, the [Scipy Superpack](http://fonnesbeck.github.com/ScipySuperpack/) works very well. Other platforms, the [Scipy Stack](http://www.lfd.uci.edu/~gohlke/pythonlibs/) has binary available to install.

After installation, you will need to create a configuration file in home directory named ".tmconfig.ini".

Example: ```

System Message: WARNING/2 (<string>, line 43); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 43); backlink

Inline interpreted text or phrase reference start-string without end-string.

System Message: ERROR/3 (<string>, line 45)

Unexpected indentation.
1 [DEFAULT] 2 HistoricalDataPath = /Users/chen/Repository/historicaldata

System Message: WARNING/2 (<string>, line 47)

Block quote ends without a blank line; unexpected unindent.

```

System Message: WARNING/2 (<string>, line 47); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 47); backlink

Inline interpreted text or phrase reference start-string without end-string.

Configuration file is intended to point to the historical data folder. A copy of historical data can be downloaded from: [historicalata](https://github.com/chinux23/historicaldata)

Dependencies
  • Python (>= 3.3.1)
  • numpy (>= 1.7.1)
  • pandas (>= 0.11.0)
  • pytz
  • ta-lib

Contact

For other questions, please contact Chen Huang <chinux@gmail.com>.

Subscribe to package updates

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.