Hi All-
I've tried logging DollarVolume and MarketCap for my coarse universe but have had no luck. Anyone know how to do this? I looked into the documentation and forum but found no solution.
Justin
QUANTCONNECT COMMUNITY
Hi All-
I've tried logging DollarVolume and MarketCap for my coarse universe but have had no luck. Anyone know how to do this? I looked into the documentation and forum but found no solution.
Justin
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.
Nico Xenox
Hey Justin E,
Are you trying to Log them for each of the symbols or the mean?
How to:
If you want to print the mean you will have to import this:
Or you could do it like this:
You could, I dont encourage that, also print the values into a chart…
The same would work with market cap. The only difference would be that you would have to do that in the fine universe.
Hope it helps ;)
Justin E
It does, I was looking for the log of each individual symbol and it does that now :)
How can I also pair it with the symbol itself and maybe the date (self.Time) as well to get them in a list format?
Right now it prints as: [27903659586.0, 27315343780.0, 18485063288.0, 16769323627.0, 15264435429.0, 8415523160.0, 7665633485.0, 7009039445.0, 6442835322.0, 5027921002.0]
Goal format is:
2022-9-18 9::30:30, AAPL, 1,000,000
…
Thanks,
Justin
Justin E
Nevermind, I answered my own question:
for c in sortedByDollarVolume[:10]:
self.Log(str(c.Symbol.Value) + " " + str(c.DollarVolume))
Thanks again Nico Xenox!!
Justin E
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!