Hello,
I'm starting here a new thread about zipline / Quantopian
It's a python trading framework - event driven that can be use
for backtesting strategy.
https://bitcointalksearch.org/topic/m.2105722http://vimeo.com/53064082If you want to try it, you should run ipython with pylab inline
ipython notebook --pylab inline
MtQuid posts a Python Notebook here
https://bitcointalksearch.org/topic/m.2116508http://nbviewer.ipython.org/5561936I'm posting here to avoid to overload goxtool thread
(ncurse python software to trade BTC with MtGox)
I have some questions... about zipline...
First, I noticed that data (daily mtgox|BTC/USD data are coming from
http://www.quandl.com/api/v1/datasets/BITCOIN/MTGOXUSD.csv?trim_start=2012-01-01&sort_order=asc(
http://www.quandl.com/BITCOIN-Bitcoin-Charts/MTGOXUSD-Bitcoin-Markets-mtgoxUSD )
raw data from
http://bitcoincharts.com/charts/chart.json?m=mtgoxUSD open high low close volume volume_usd price
Date
2013-05-11 00:00:00+00:00 117.70000 118.74000 113.00 113.47000 25532.277740 2952016.798507 115.619015
2013-05-10 00:00:00+00:00 112.79900 122.50000 111.54 117.70000 77443.672681 9140709.083964 118.030418
2013-05-09 00:00:00+00:00 113.20000 113.71852 108.80 112.79900 26894.458204 3003068.410660 111.661235
2013-05-08 00:00:00+00:00 109.60013 116.77700 109.50 113.20000 61680.324704 6990518.957611 113.334665
2013-05-07 00:00:00+00:00 112.25000 114.00000 97.52 109.60013 139626.724860 14898971.673747 106.705731
DatetimeIndex: 497 entries, 2013-05-11 00:00:00+00:00 to 2012-01-01 00:00:00+00:00
Data columns:
open 497 non-null values
high 497 non-null values
low 497 non-null values
close 497 non-null values
volume 497 non-null values
volume_usd 497 non-null values
price 497 non-null values
dtypes: float64(7)
open high low close volume volume_usd price
Date
2012-01-05 00:00:00+00:00 5.57383 7.2200 5.57401 6.94760 182328.193876 1130623.294233 6.201034
2012-01-04 00:00:00+00:00 4.88080 5.7000 4.75100 5.57383 131170.856663 688717.856619 5.250540
2012-01-03 00:00:00+00:00 5.21678 5.2900 4.65000 4.88080 125170.253872 619170.541604 4.946627
2012-01-02 00:00:00+00:00 5.26766 5.4700 4.80000 5.21678 69150.931963 360357.284302 5.211170
2012-01-01 00:00:00+00:00 4.72202 5.4999 4.61500 5.26766 108509.229901 553045.139811 5.096757
Note: in fact data need to be sort using ascending index
without that you will get this error message
AssertionError: Period start falls after period end.
I wonder what is "weighted price"... (renamed price)
this notebook seems to use this "weighted price" to simulate kind of tick data
it will be in my mind much better to simulate each price that have been seen on market (open high low close)
because if you are going long and you put a Stop Loss, it will be probably be hitten by low price.
(or if you are goind short it will probably be hitten by high price)
Second,
I have some problem to run notebook (I always get a (*) )
but I'm running without notebook
http://pastebin.com/jmfuNTKsThird,
I wonder why I don't see buy/sell (^ and v)
Fourth,
what about day trading !!!
(with M15 timeframe !)
some data are here
https://bitcointalksearch.org/topic/crypto-currencies-historical-data-199979or
https://bitcointalksearch.org/topic/data-btcusd-data-in-csv-format-various-timeframes-196834unfortunately I'm quite busy today ;-(
Kind regards