BUG: Use last trading day for last successful date message.

market_open member does not exist on TradingEnvironment.
This commit is contained in:
Eddie Hebert
2013-04-24 16:17:31 -04:00
parent 8937ac1f41
commit ab1a23526d
+1 -1
View File
@@ -176,7 +176,7 @@ class TradingEnvironment(object):
if next_open is None:
raise Exception(
"Attempt to backtest beyond available history. \
Last successful date: %s" % self.market_open)
Last successful date: %s" % self.last_trading_day)
return self.get_open_and_close(next_open)