Commit Graph

11 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 17b36c5def Modified heartbeat comment in trading.py. Also added a script in the /scripts directory that generates simulated forex tick data in the style of Dukascopy. 2015-05-27 18:10:55 +01:00
Michael Halls-Moore 4380200de7 Added the ability for the backtester to use unrealised PnL from the Position objects to calculate a tick-by-tick equity curve. Added a performance directory that calculates drawdown statistics. Modified the output.py script to use Seaborn and output the equity curve, returns and drawdown curve. 2015-05-15 13:50:34 +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 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
Michael Halls-Moore d9a7444fc2 Added some more unit tests for Portfolio and Position. Added a README and a requirements file now that qsforex is open-source under an MIT license. 2015-03-17 07:48:37 +00:00
Michael Halls-Moore 6c77cc1deb Decimalised the trading engine to be more realistic 2015-03-06 09:57:15 +00:00
Michael Halls-Moore 30dbcc7bfa Reverted strategy to random buy/sell 2015-02-03 15:22:03 +00:00
Michael Halls-Moore b0b19d603d Added remaining trading system around portfolio in order to compare with OANDA. 2015-02-03 13:33:33 +00:00