Back to Community
Print 1 Minute Closing Price

I am attempting to print the closing price of each one minute bar for the SPY on 9/5/17 to compare the data to ThinkOrSwim and others.

When I run my backtest the log shows 2017-09-05 09:31 PRINT 2017-08-31 13:32:00+00:00 246.627
I don't understand why it is showing the print for 8/31/17 and on top of that why at 9:32am why not 9:30am?

My bar count is set to 780, if my understanding is correct there should be 390 1 minutes bars in a single trading day so there should be 780 bars in two trading days (trading days 9:30am to 3:59pm). I would greatly appreciate any insights into the cause of this and welcome any suggestions to the code.

Thanks,

Clone Algorithm
2
Loading...
Backtest from to with initial capital
Total Returns
--
Alpha
--
Beta
--
Sharpe
--
Sortino
--
Max Drawdown
--
Benchmark Returns
--
Volatility
--
Returns 1 Month 3 Month 6 Month 12 Month
Alpha 1 Month 3 Month 6 Month 12 Month
Beta 1 Month 3 Month 6 Month 12 Month
Sharpe 1 Month 3 Month 6 Month 12 Month
Sortino 1 Month 3 Month 6 Month 12 Month
Volatility 1 Month 3 Month 6 Month 12 Month
Max Drawdown 1 Month 3 Month 6 Month 12 Month
# Backtest ID: 59b87d70210a7454c08e4c9e
There was a runtime error.