Skip to content

Commit

Permalink
backtest: prefetch and sim_start is not synced #29
Browse files Browse the repository at this point in the history
  • Loading branch information
miro-ka committed Aug 1, 2017
1 parent 43552d3 commit 73c1446
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config.sample.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exchange = polo
# List of pairs that the ticker should be retrieved/monitored
# Valid values:
# all - get ticker for ALL currencies
# comma separated list of pairs, for example BTC_DGB
# comma sepparated list of pairs, for example BTC_DGB
# prefix_* - log all pairs with given prefix. For example BTC_* or USDT_*
pairs = BTC_*
# Buffer size in hours (how many hours of data samples we need to save in memory)
Expand All @@ -18,7 +18,7 @@ strategy = mosquito
transaction_fee = 0.2
# Currency towards which the balance will be calculated
root_report_currency = BTC
# Prefetches data from history exchange ticker
# Prefetches data from history exchange ticker (feature should be only used for Paper and Live trading)
prefetch = false

[Report]
Expand All @@ -35,7 +35,7 @@ db = mosquito
# ⋅⋅⋅⋅⋅⋅⋅ Exchanges ⋅⋅⋅⋅⋅⋅⋅
[Poloniex]
api_key =
secret =
secret =
# fillOrKill, immediateOrCancel. (postOnly - not supported yet!)
buy_order_type = immediateOrCancel
# fillOrKill, immediateOrCancel. (postOnly - not supported yet!)
Expand Down
2 changes: 1 addition & 1 deletion core/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def run(self):

print('Starting simulation..')

# Prefetch Buffer Data (if
# Prefetch Buffer Data (if enabled in config)
if self.prefetch:
self.history = self.bot.prefetch(self.strategy.get_min_history_ticks(), self.interval)
self.look_back = self.history.copy()
Expand Down

0 comments on commit 73c1446

Please sign in to comment.