TradingView
Berengrave
2021年12月10日中午12點28分

UK Sectors Comparison SMA 

UK INDEX SERIES CBOE UK INDUSTRIALS SECTOR - PRICECBOE EU

描述

Provides a chart showing SMA of UK equity indexes from CBOE cboe.com/europe/indices/
Shows either percentage change from baseline, or absolute index values.

All configurable (including selected symbols), but the defaults are:
SMA 100,
Show Absolute Values = true

Baseline is set to CBOEEU:BUKAC

Sector indexes are:
UK Consumer Cyclicals = CBOEEU:BUKCONC
UK Mining and Minerals = CBOEEU:BUKMINP
UK Finance = CBOEEU:BUKFIN
UK Technology = CBOEEU:BUKTEC
UK Telecoms = CBOEEU:BUKTEL
UK Consumer Services = CBOEEU:BUKCONS
UK Healthcare = CBOEEU:BUKHLTH
UK Energy = CBOEEU:BUKENGY
UK Utilities = CBOEEU:BUKUTL
UK Business Services = CBOEEU:BUKBUS
UK Consumer Non-Cyclicals = CBOEEU:BUKCNC
UK Industrials = CBOEEU:BUKIND
UK Non-Energy Minerals = CBOEEU:BUKNIM

NOTE: takes a few seconds to load as it needs to request all the data

Check the tooltips in the settings for detailed help.






發布通知

Updated typo for UK Technology sector code as mentioned in the comments
評論
prithvi1974
HI

THANK YOU FOR THE SUPPORT. I AM FINDING ISSUE IN THE LINE 38 TO 50. I AM CHANGING IN THE TITLE HOWEVER IT IS THROWING AS ERROR . CAN YOU PLEASE GUIDE ME

EXAMPLE :
plot(getSma(conc, length=smalength), color=#d98880, linewidth=1, editable=true, title="FMCG")
plot(getSma(minp, length=smalength), color=#f1948a, linewidth=1, editable=true, title="PHARMA")
plot(getSma(fin, length=smalength), color=#ff0021, linewidth=1, editable=true, title="Finance")

SHOULD I HAVE TO CHANGE ANYTHING SOON AFTER SMA( ???

REGARDS

PRITHVI
issaik12
How can we do this for US Stock Sectors?
NelsonM1984
hey Berengrave, thanks for this idea! I have started converting the different areas into @MUQWISHI 's beautiful table tradingview.com/script/3stawKPB-US-Stock-Market-Sectors-Overview-Table-By-MUQWISHI/

I'll publish it tomorrow when I can finish it off. Any suggestions welcome!

Ps, in your code you've accidentally got CBOEEU:BUKFIN in twice, the second time for CBOEEU:BUKTEC
prithvi1974
@NelsonM1984,

Hi, Is this released ? is it applicable for Indian market also ? pls reply Regards
Berengrave
@prithvi1974, Re the original script, it's fairly straightforward to change the indexes - find your baseline index in trading view (eg Nifty500 CNX500), and update line 10, and then find the other indexes you want to compare that against, eg Nifty IT (CNXIT), Nifty Media (CNXMEDIA), and update lines 12-24 (deleting lines that don't matter, changing the titles as required. Finally, update lines 38-50 to use the relevant variable names from lines 12-24 that you have left.
prithvi1974
@prithvi1974,

Hi I was able to rectify all the lines however when added to chart, I am not seeing lines can you please help me
prithvi1974
@Berengrave,

Hi I was able to rectify all the line items, however i am not able to see the lines when added to chart. can you please help me
Berengrave
@NelsonM1984, Looks very cool, and good spot with that bug.
更多