I am currently not getting Nasdaq 100 data
QUANTCONNECT COMMUNITY
I am currently not getting Nasdaq 100 data
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.
Itumeleng Moreotlotlo
Itumeleng Moreotlotlo
Varad Kabade
Hi Itumeleng Moreotlotlo,
In the above algorithm, the OnData method receives an object of type Slice, not of typeTradeBar. In the OnData method, we need to find the contract chain for our symbol, and for each contract, in the chain, we create 2 EMA Indicators(fast and slow). Refer to this doc about using futures data . After selecting the contract we want to trade (Here, we selected contract according to expiry date), we check for the signal and place our order. Refer to the attached backtest for reference, which includes the changes mentioned above.
Best,
Varad Kabade
Itumeleng Moreotlotlo
Hi Varad, I am kind of new into this, I tried implementing the dictionaries into my updated strategy and it is not giving back results can you please helpÂ
Varad Kabade
Hi Itumeleng Moreotlotlo,
The algorithm above has a few issues:
(1) The SetHoldings method is trying to place orders with _chainSymbol
SetHoldings(_chainSymbol, 0.50);
(2) The algorithm places trades every minute(3) The quantity for the TP and SL orders should all be negative(4) We should only cancel TP/SL orders when an order is filled
Â
(3) The quantity for the TP and SL orders should all be negative
(4) We should only cancel TP/SL orders when an order is filled
Â
See this backtest for reference. Refer to this thread to know more about TP/SL orders
Best,
Varad Kabade
Itumeleng Moreotlotlo
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!