Hey, just trying to figure out the timing for my rebalancing code. I think its a simple problem. I'm in pacific time so I tried to time out the rebalance on the time stamps on the log reports which is 7 hours ahead of my current time and also on Eastern time, 3 hours ahead, and my current time (PST). It will rebalance fine on back testing but not on live. The following schedule should rebalance on the 15th of the month at 1:30pm EST correct (10:30am PST)?
On initialize:
self.Schedule.On(self.DateRules.MonthStart(14),self.TimeRules.At(13, 30), self.RebalancingCode)
def RebalancingCode(self):
btccoins = self.Portfolio.CashBook["BTC"].Amount
ethcoins = self.Portfolio.CashBook["ETH"].Amount
if btccoins > 0.00001:
self.SetHoldings("BTCUSD", 0.3)
if ethcoins > 0.00001:
self.SetHoldings("ETHUSD", 0.335)
Derek Melchin
Hi David,
There is currently an issue with Scheduled Events not firing in live trading. We've created a GitHub Issue to have the problem resolved. Subscribe to our progress here:
Scheduled Events Don't Start In Current Month When Live Trading #5678
Best,
Derek Melchin
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
David Eldringhoff
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!