Commit Graph

7 Commits

Author SHA1 Message Date
Michael Halls-Moore 553edab0db Added basic logging capability to trading.py and related classes. 2015-07-13 19:22:27 +01:00
Michael Halls-Moore 675412c125 Modified the position handling to fix a pricing bug, so that locally handled Portfolio values match those of OANDA (up to slippage). 2015-07-13 16:30:55 +01:00
Michael Halls-Moore 458f263722 Multi-day backtesting now supported. 2015-06-03 09:23:40 +01:00
Michael Halls-Moore a03bc7a1fb Added Python 2.7.x and 3.4.x compatibility to the code. Disabled HTTPS security warning in urllib3 package of 'requests' package. 2015-05-11 17:30:28 +01:00
Michael Halls-Moore 8e74edb4f7 Moved streaming.py into data directory. Modified how trading.py and backtest.py behave so that the price streaming is fixed. 2015-04-23 12:45:40 +01:00
Michael Halls-Moore e84512e1e7 Lots of changes. Modified the Position object to handle more of the actual position calculations instead of the Portfolio. Added more unit tests for both Position and Portfolio. Allowed Positions to trade in currencies other than GBPUSD and in base/quotes which aren't the home currency. Modified the backtester to be single-threaded and added a basic Moving Average Crossover strategy. Also added a basic equity curve output script. 2015-04-21 13:01:20 +01:00
Michael Halls-Moore e74777802b Modified the Position handling to use long/short instead of buy/sell for side/position_type. Also modified the unit tests for both Portfolio and Position to reflect these changes. Added a basic historical backtesting capability via backtest.py and using CSV tick data for currency pairs. 2015-04-17 12:34:31 +01:00