Re:Coders who trade: Wall Street designs its staff for the f...
by monkeyshelli on Saturday November 18, 2017 @12:26PM
(#15729843)
You can query Bittrex for some data, or you can find some data and a script from here
https://github.com/gcarq/freqtrade/tree/master/freqtrade/tes...
Couldn't you bake the fee into the application logic e.g. https://github.com/gcarq/freqtrade/blob/master/freqtrade/mai...
Re:Coders who trade: Wall Street designs its staff for the f...
by meesterdude on Saturday November 18, 2017 @12:50PM
(#15729925)
> Couldn't you bake the fee into the application logic
You can (and I do as well) - although some proprietary bots have had notable problems with figuring them out.
Re:Coders who trade: Wall Street designs its staff for the f...
by alexcnwy on Saturday November 18, 2017 @02:13PM
(#15730207)
Fee isn't limited to what you're paying the exchange, you have to take into account slippage - the price you use in your backtests is NOT the price you could actually realistically buy at because as soon as you buy, you move the price (especially in size).
Strictly speaking, you should be incorporating level 2 order book data to properly gauge fees and simulate real world profits from your backtests.
Re:Coders who trade: Wall Street designs its staff for the f...
by meesterdude on Saturday November 18, 2017 @12:47PM
(#15729918)
poloniex has historical data you can use. I trade on bittrex, but their data doesn't go back very far - enough to do calculations in the now, but not nearly enough to backtest against.
Hardest part with backtesting in my experience has been trying to simulate successful buy/sell orders and the fees.