I was trying to filter the top_roe stocks in the commented part of the attached backtest.
ROE
MultiPeriodField
Net Income / Average Total Common Equity
fine.OperationRatios.ROE.OneMonth
but got
Error Message:
Runtime Error: AttributeError : 'ROE' object has no attribute 'OneMonth'
at FineSelection in main.py:line 77
at in main.py:line 77
AttributeError : 'ROE' object has no attribute 'OneMonth'
when I removed 'OneMonth'
I got
Error Message:
Runtime Error: TypeError : Cannot convert object of type Python.Runtime.CLRObject to IComparable
at FineSelection in main.py:line 77
TypeError : Cannot convert object of type Python.Runtime.CLRObject to IComparable
Any help is greatly appreciated.
Frank Giardina
Vlad,
Attached a sample that worked for me. I used (fine.OperationRatios.ROE.Value)
Frank
Vladimir
Frank Giardina,
Thank you very much for your help. It works.
QC
Is this a bug in the documentation for
"fine.OperationRatios.ROE.OneMonth"?
Frank Giardina
I believe it is. I have found when i use .Value i get the current values using the other .qualifiers it can be hit or miss. I come from the Quantopian camp which i think you did too and this is an area that Quantconnect needs to document better.
Shile Wen
Hi Vladimir and Frank,
That is an issue with our docs. I've submitted an issue request here.
Furthermore, this post provides a great method for figuring out what fields are available for a fundamental field.
Best,
Shile Wen
Vladimir
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!