Back

Complete strategy framework - where is my bug ?

I am trying to modify the complete strategy framework, had to take out vix as it seems to be bugged.

I am trying to load my custom picks from a csv file under the asset manager > UpdateUniverse2

My tickers seem to load correctly into the universe for the next day, but they dont actually trade :(

Would be very grateful if someone could point me to why I cant get them to execute, ideally right now I just want each to buy at 25% then liquidate before market close (havent gotten that far yet as I couldnt even execute the trades)

Things might look a little crazy as I was trying to find the bug ... used a script to write out the assets dictionary dont worry :) !
Update Backtest








I suggest you put a Debug Stop at line 292 and 308 of ModuleExecution to see if an Order is actually being sent of to the broker. If it never gets there, start working backwards placing stops up the call chain until you hit one and then debug step forward from there to find out why it is not executing the trade.
0

Hey Daniel, I did a simple test by placing a "Called" after the first return,

//1. Initialize: only continue when prices completely full:
if (!UpdatePrices(bars)) return;
Console.WriteLine("Called");


It doesn't fire -- presumably because we might not have data for one of the many symbols you've requested! :) We will ship universe selection today I promise! Then you can use the built in system for BaseData Universes to achieve this much more elegantly.
0

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.


Hey Daniel, great news! Last night we launched the universe selection feature. I've taken the liberty to whip together your ImportPicks as a custom data universe. Using this feature, you can define your own custom BaseData and use that to make universe selection decisions!!

Have a look at the attached project and let us know what you think!
1

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.


Update Backtest





0

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.


Loading...

This discussion is closed