luminaryfi

Portfolio Metrics = α(Jensen's), β, CAPM(Ra), Sharpe, Treynor

Portfolio Metrics...

Standard Deviation

Jensen's Alpha

Beta

Expected Return (CAPM, Ra)

Sharpe Ratio

Treynor Ratio
Release Notes: //
Release Notes: error correction
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Comments

Hi LUMIN, Can you please tell us how to use this and how it will be helpful?
Reply
Hi luminaryfi, Fantastic work!!, would it be more efficient to use global arrays, to push much of the processing into static functions. Secondly, although the line indicator advantages those looking for historical data, is there a version which uses a label overlay, or would this be problematic with the bar_lookahead?
Reply
wow. thanks for this
Reply
Just excellent work, thank you.
Reply
luminaryfi angelitos
@angelitos, no problem! thanks!! If you have any scripts you would like to see, I'll be happy to write it. I've just been doing them for coding practice. I always make the source code open-source too.
+1 Reply
angelitos luminaryfi
@luminaryfi, Perfect I will write you soon :)
Reply
angelitos luminaryfi
@luminaryfi, Hello I hope you are well. As you offered me here I have a project for you. Investing based on angles and slopes is a disruptive concept but I think it is going to be a very effective technique. Here I present this script based on that model to identify trends from mild to extreme but only downward. I wonder if you can program it, I think, in an inverse way so that it can give the same signals towards the upside, although the two indicators that are consigned in a single script. I look forward to your kind comments, thank you.
Reply
//discontinued support
//new indicator will be released
Reply