Back

File: n/a Line:0 Column:0 - Python class failed to compile

Hi,

I'm getting this build warning but can't for the life of me work out why.

It was all working fine until I added in an RSI indicator and some additional if statements. I've since removed the new lines but it won't buid.

Any ideas? This seems like a different issue to the previous forum post on this subject.

Thanks in advance

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.


Hello, I am also stuck at the exact same error.

0

Can you post the relevant code? FWIW I've encountered weird backtest failures that fix themselves with subsequent build/backtest requests. I think it may be some race condition with how their UI works.

Example:

- Type some things in document that trigger a parser error.

- Quickly make the fix (parser error won't go away for at least several more seconds)

- Before parser error fixes itself, hit backtest (script itself is ok, but parser hasn't caught up)

- Backtest fails

- Hit build (completes successfully), then hit backtest

- Backtest completes

Without your code I can't tell for sure though.

0

I figured out that it was happening due to a problem which I have shared in the following issue. I fixed that but then encountered another problem as mentioned in the issue (for which I also developed a workaround).

https://www.quantconnect.com/forum/discussion/5418/how-to-load-an-external-pytorch-model/p1

 

0

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