Back

Daily Bar Error

I am trying to consolidate daily bar through minute bars. It was working until yesterday, and I saw the error messages below.

Build Warning: File: Main.cs Line:247 Column:67 - The type `QuantConnect.Algorithm.Field' conflicts with the imported type of same name'. Ignoring the imported type definition
Build Error: File: Line:0 Column:0 - ../cache/..QuantConnect.AlgorithmField.cs(25,33): (Location of the symbol related to previous warning)
Build Error: File: Line:0 Column:0 - QuantConnect.Common.dll (Location of the symbol related to previous warning)


Not sure why it just stop working. Can anybody help? The snippet is attached below, and line 247 is where I have "RegisterIndicator("SPY", SPY_Close, Resolution.Daily, Field.Close);"

public Identity SPY_Close;

AddSecurity(SecurityType.Equity, "SPY", Resolution.Minute);
SPY_Close = new Identity("SPY");
RegisterIndicator("SPY", SPY_Close, Resolution.Daily, Field.Close);
Update Backtest








Hey @Travis!

I've attached a project which copies the Field file so you can continue using it. I'll look into the issue, but this should keep you going.
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.



Field.cs was incorporated into master last year -- so if you delete that file it will work fine now

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.


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