There has must be a better way to troubleshoot the code execution of live strategies other than this.
Launching analysis for L-c9f5d1975e8cd76a8160200c04edb5fd with LEAN Engine v2.5.0.0.15467
I'm paying for two live servers and I have tried six different strategies over the last several weeks and this
is the output.
Can someone tell me what the execution interval is for strategies?
Is there a way to increase the verbosity level of the logging as a whole?
Is there some interactive console I can activate to watch the code actually execute?
I've already looked into the QCAlogrithm log but that seems equivalent to the old days of BASIC and printf.
Thanks,
Douglas Sterner
I'm really hoping that someone might be able to offer a suggestion on how to troubleshoot this issue?
This is all the logs show: Launching analysis for L-c9f5d1975e8cd76a8160200c04edb5fd with LEAN Engine v2.5.0.0.15467
Thanks,
Douglas Sterner
So this continues to be a problem I can not get any strategy to run Live they simply sit there for days on end. Can someone provide some insight into why this is occurring. I have tried Quantconnect paper and Tradier paper results are the same.
Thanks,
Douglas Sterner
Can someone confirm if I am warming up my indicators correctly in this code snippet. My strategy never executes when it goes live.
class DualSMACross(QCAlgorithm):
def Initialize(self):
self.SetStartDate(2008, 1, 1)
self.SetEndDate(2012, 12, 1)
self.SetCash(5000)
self.spy = self.AddEquity("SPY", Resolution.Minute).Symbol
self.gld = self.AddEquity("GLD", Resolution.Minute).Symbol
self.slow_sma = self.SMA(self.spy, 200, Resolution.Daily)
self.slow_sma_gld = self.SMA(self.gld, 200, Resolution.Daily)
self.previous = self.Time.min
self.tolerance = 0.00015
# Define longest period warm up for the indicator for backtesting.
self.SetWarmup(200, Resoluion.Daily)
# Define brokerage
# self.SetBrokerageModel(BrokerageName.InteractiveBrokersBrokerage, AccountType.Margin)
# self.SetBrokerageModel(BrokerageName.TradierBrokerage, AccountType.Margin)
self.SetBrokerageModel(BrokerageName.QuantConnectBrokerage, AccountType.Margin)
# Define parameters settings
fast_sma_spy = self.GetParameter("parameter_fast_sma_spy")
fast_sma_gld = self.GetParameter("parameter_fast_sma_gld")
# Define default values if parameters can not be read
fast_sma_spy = 50 if fast_sma_spy is None else int(fast_sma_spy)
fast_sma_gld = 50 if fast_sma_gld is None else int(fast_sma_gld)
# Substitute parameters for static values
self.fast_sma = self.SMA(self.spy, fast_sma_spy, Resolution.Daily)
self.fast_sma_gld = self.SMA(self.gld, fast_sma_gld, Resolution.Daily)
def OnData(self, data):
if (IsWarmingUp):
return
if self.previous.date() == self.Time.date():
return
if not self.fast_sma.IsReady or not self.slow_sma.IsReady or not self.fast_sma_gld.IsReady or not self.slow_sma_gld.IsReady:
return
Louis Szeto
Hi Douglas
I think warm up was looking fine. The execution in live is very similar to backtest. Probably you need to check if your trading criteria was met or not. If you need further assistant, contact support@quantconnect.com for private live support issue.
Best
Louis
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.
Douglas Sterner
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!