Enjoy, enhance your trading (I hope), copy or adapt to your needs and keep smiling!
Thanks to @MartinShkreli. The sector variables and the "repaint" option (approx lines 20 through 32 of this script) are used directly from your script "Sectors"
RECOMMENDATION: Update the sector weightings -inputs are provided. They change as often as monthly and the
Display the correlation coefficient and/or Beta of an asset to a specified market.
- Specify market (S&P500 futures by default)
- Display one or other metrics
- Modify assessment period (200 bars by default)
- Calculate on price, returns or log-returns