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);
Michael Handschuh
H Huxley Li
I just cloned your project and I have the following error
4 | 14:33:05:
Build Error: File: Main.cs Line:27 Column:51 - Argument 4: cannot convert from 'System.Func' to 'System.Func'
5 | 14:33:51:
Build Error: File: Main.cs Line:27 Column:65 - Syntax error, ',' expected
6 | 14:33:51:
Build Error: File: Main.cs Line:28 Column:37 - ) expected
7 | 14:33:51:
Build Error: File: Main.cs Line:27 Column:18 - No overload for method 'SMA' takes 5 arguments
Jared Broad
Field.cs was incorporated into master last year -- so if you delete that file it will work fine now
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.
Travis Fu
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!