bursamalaysianonshariah
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © BURSATRENDBANDCHART

//@version=5

// @description : Update 27 DEC 2022 ! List of Shariah stock for Bursa Malaysia
library("bursamalaysianonshariah", overlay = true)

// @function : To get current ticker Shariah status
// @param    : no parameter required
// @returns  : status() will return 0 if in the list (shariah), 1 if not in the list (non-shariah) and 2 if ticker not from Bursa Malaysia

export status() =>
	a = array.new_string()
	array.push(a,"3A")
	array.push(a,"AASIA")
	array.push(a,"AAX")
	array.push(a,"ABLEGLOB")
	array.push(a,"ABLEGRP")
	array.push(a,"ACME")
	array.push(a,"ACME-WA")
	array.push(a,"ACO")
	array.push(a,"ADVCON")
	array.push(a,"ADVENTA")
	array.push(a,"ADVPKG")
	array.push(a,"AEMULUS")
	array.push(a,"AEON")
	array.push(a,"AFUJIYA")
	array.push(a,"AGES")
	array.push(a,"AHB")
	array.push(a,"AHEALTH")
	array.push(a,"AIMFLEX")
	array.push(a,"AIRASIA")
	array.push(a,"AJI")
	array.push(a,"AJIYA")
	array.push(a,"ALAM")
	array.push(a,"ALAM-WA")
	array.push(a,"ALAQAR")
	array.push(a,"ALSREIT")
	array.push(a,"AME")
	array.push(a,"AME-WA")
	array.push(a,"AMLEX")
	array.push(a,"AMPROP")
	array.push(a,"AMTEL")
	array.push(a,"AMTEL-WA")
	array.push(a,"AMWAY")
	array.push(a,"ANCOMNY")
	array.push(a,"ANCOMNY-WB")
	array.push(a,"ANCOMLB")
	array.push(a,"ANEKA")
	array.push(a,"ANNJOO")
	array.push(a,"ANNUM")
	array.push(a,"ANZO")
	array.push(a,"ANZO-WB")
	array.push(a,"APB")
	array.push(a,"APM")
	array.push(a,"APOLLO")
	array.push(a,"ARANK")
	array.push(a,"ARBB")
	array.push(a,"ARK")
	array.push(a,"ARTRONIQ")
	array.push(a,"ASDION")
	array.push(a,"ASIABRN")
	array.push(a,"ASIAPAC")
	array.push(a,"ASIAPLY")
	array.push(a,"ASTINO")
	array.push(a,"AT")
	array.push(a,"AT-WC")
	array.push(a,"ATAIMS")
	array.push(a,"ATTA")
	array.push(a,"ATTA-WB")
	array.push(a,"ATTA-WC")
	array.push(a,"ATECH")
	array.push(a,"AURORA")
	array.push(a,"AVI")
	array.push(a,"AWANTEC")
	array.push(a,"AWANTEC-WA")
	array.push(a,"AWC")
	array.push(a,"AWC-WA")
	array.push(a,"AXIATA")
	array.push(a,"AXREIT")
	array.push(a,"AXTERIA")
	array.push(a,"AXTERIA-WA")
	array.push(a,"AYER")
	array.push(a,"AYS")
	array.push(a,"AZRB")
	array.push(a,"AZRB-WA")
	array.push(a,"BABA")
	array.push(a,"BAHVEST")
	array.push(a,"BAHVEST-WA")
	array.push(a,"BARAKAH")
	array.push(a,"BAUTO")
	array.push(a,"BCB")
	array.push(a,"BDB")
	array.push(a,"BERTAM")
	array.push(a,"BHIC")
	array.push(a,"BIG")
	array.push(a,"BIMB")
	array.push(a,"BIMB-WA")
	array.push(a,"BINACOM")
	array.push(a,"BINTAI")
	array.push(a,"BIOHLDG")
	array.push(a,"BIOHLDG-WA")
	array.push(a,"BIPORT")
	array.push(a,"BJFOOD")
	array.push(a,"BKAWAN")
	array.push(a,"BLDPLNT")
	array.push(a,"BOILERM")
	array.push(a,"BONIA")
	array.push(a,"BORNOIL")
	array.push(a,"BORNOIL-WC")
	array.push(a,"BORNOIL-WD")
	array.push(a,"BPLANT")
	array.push(a,"BPPLAS")
	array.push(a,"BPURI")
	array.push(a,"BPURI-WA")
	array.push(a,"BRAHIMS")
	array.push(a,"BSLCORP")
	array.push(a,"BTECH")
	array.push(a,"BTM")
	array.push(a,"BTM-WB")
	array.push(a,"BURSA")
	array.push(a,"BVLH")
	array.push(a,"CAB")
	array.push(a,"CABNET")
	array.push(a,"CLASSITA")
	array.push(a,"CAMRES")
	array.push(a,"CAREPLS")
	array.push(a,"CARIMIN")
	array.push(a,"CBIP")
	array.push(a,"CCK")
	array.push(a,"CCK-WA")
	array.push(a,"CEKD")
	array.push(a,"CENSOF")
	array.push(a,"CEPAT")
	array.push(a,"CEPCO")
	array.push(a,"CETECH")
	array.push(a,"CGB")
	array.push(a,"CHGP")
	array.push(a,"CHGP-WA")
	array.push(a,"CHHB")
	array.push(a,"CHHB-WB")
	array.push(a,"CHINHIN")
	array.push(a,"CHINWEL")
	array.push(a,"CHOOBEE")
	array.push(a,"CHUAN")
	array.push(a,"CIHLDG")
	array.push(a,"CJCEN")
	array.push(a,"CLOUD")
	array.push(a,"CME")
	array.push(a,"CME-WA")
	array.push(a,"CMSB")
	array.push(a,"CNH")
	array.push(a,"COCOLND")
	array.push(a,"COMFORT")
	array.push(a,"COMFORT-WB")
	array.push(a,"COMPUGT")
	array.push(a,"CRESBLD")
	array.push(a,"CRESNDO")
	array.push(a,"CRG")
	array.push(a,"CSCENIC")
	array.push(a,"CSCENIC-WA")
	array.push(a,"CSCSTEL")
	array.push(a,"CTIB")
	array.push(a,"CTOS")
	array.push(a,"CUSCAPI")
	array.push(a,"CVIEW")
	array.push(a,"CWG")
	array.push(a,"CYL")
	array.push(a,"CYPARK")
	array.push(a,"D&O")
	array.push(a,"SCIPACK")
	array.push(a,"SCIPACK-WB")
	array.push(a,"DANCO")
	array.push(a,"DANCO-WA")
	array.push(a,"DATAPRP")
	array.push(a,"DAYANG")
	array.push(a,"DBHD")
	array.push(a,"DESTINI")
	array.push(a,"DFCITY")
	array.push(a,"DIALOG")
	array.push(a,"DIGI")
	array.push(a,"DKLS")
	array.push(a,"DKSH")
	array.push(a,"DLADY")
	array.push(a,"DNEX")
	array.push(a,"DNONCE")
	array.push(a,"DOMINAN")
	array.push(a,"DPHARMA")
	array.push(a,"DPS")
	array.push(a,"DPS-WB")
	array.push(a,"DRBHCOM")
	array.push(a,"DSONIC")
	array.push(a,"DSONIC-WA")
	array.push(a,"DUFU")
	array.push(a,"INGENIEU")
	array.push(a,"INGENIEU-WA")
	array.push(a,"E&O")
	array.push(a,"MBRIGHT")
	array.push(a,"MBRIGHT-WB")
	array.push(a,"EATECH")
	array.push(a,"ECOFIRS")
	array.push(a,"ECOFIRS-WD")
	array.push(a,"ECOHLDS")
	array.push(a,"ECONBHD")
	array.push(a,"ECONBHD-WA")
	array.push(a,"ECOWLD")
	array.push(a,"ECOWLD-WA")
	array.push(a,"EDARAN")
	array.push(a,"EDEN")
	array.push(a,"EDGENTA")
	array.push(a,"EDUSPEC")
	array.push(a,"EDUSPEC-WB")
	array.push(a,"EFORCE")
	array.push(a,"EG")
	array.push(a,"EIG")
	array.push(a,"EITA")
	array.push(a,"EITA-WA")
	array.push(a,"EKOVEST")
	array.push(a,"ELSOFT")
	array.push(a,"EMETALL")
	array.push(a,"EMICO")
	array.push(a,"ENCORP")
	array.push(a,"ENEST")
	array.push(a,"ENGKAH")
	array.push(a,"ENGKAH-WB")
	array.push(a,"ENGTEX")
	array.push(a,"ENGTEX-WB")
	array.push(a,"ENRA")
	array.push(a,"ENRA-WA")
	array.push(a,"EPMB")
	array.push(a,"ESAFE")
	array.push(a,"EUPE")
	array.push(a,"EURO")
	array.push(a,"EUROSP")
	array.push(a,"EVERGRN")
	array.push(a,"EWEIN")
	array.push(a,"EWEIN-WB")
	array.push(a,"EWINT")
	array.push(a,"EWINT-WA")
	array.push(a,"F&N")
	array.push(a,"FAJAR")
	array.push(a,"FAREAST")
	array.push(a,"FAVCO")
	array.push(a,"FBBHD")
	array.push(a,"FGV")
	array.push(a,"FIAMMA")
	array.push(a,"FIHB")
	array.push(a,"FIMACOR")
	array.push(a,"FITTERS")
	array.push(a,"FLEXI")
	array.push(a,"FOCUSP")
	array.push(a,"FPGROUP")
	array.push(a,"FPI")
	array.push(a,"FM")
	array.push(a,"FRONTKN")
	array.push(a,"FRONTKN-WB")
	array.push(a,"FSBM")
	array.push(a,"FSBM-WA")
	array.push(a,"G3")
	array.push(a,"G3-WA")
	array.push(a,"GADANG")
	array.push(a,"GADANG-WB")
	array.push(a,"GAMUDA")
	array.push(a,"GASMSIA")
	array.push(a,"GBGAQRS")
	array.push(a,"GBGAQRS-WB")
	array.push(a,"GCAP")
	array.push(a,"GCB")
	array.push(a,"GCB-WB")
	array.push(a,"GDB")
	array.push(a,"GDB-WA")
	array.push(a,"GDEX")
	array.push(a,"GDEX-WC")
	array.push(a,"GENETEC")
	array.push(a,"GENP")
	array.push(a,"ONEGLOVE")
	array.push(a,"GFM")
	array.push(a,"GFM-WC")
	array.push(a,"GHLSYS")
	array.push(a,"GIIB")
	array.push(a,"GIIB-WA")
	array.push(a,"GKENT")
	array.push(a,"GLBHD")
	array.push(a,"GLOMAC")
	array.push(a,"GLOTEC")
	array.push(a,"GLOTEC-WA")
	array.push(a,"GMUTUAL")
	array.push(a,"GOB")
	array.push(a,"GOLDETF")
	array.push(a,"GOPENG")
	array.push(a,"GPHAROS")
	array.push(a,"GPP")
	array.push(a,"GREATEC")
	array.push(a,"GREENYB")
	array.push(a,"GTRONIC")
	array.push(a,"GUH")
	array.push(a,"HAILY")
	array.push(a,"HANDAL")
	array.push(a,"HARBOUR")
	array.push(a,"HARNLEN")
	array.push(a,"HARNLEN-WB")
	array.push(a,"HARTA")
	array.push(a,"HCK")
	array.push(a,"HCK-WA")
	array.push(a,"HENGYUAN")
	array.push(a,"HEVEA")
	array.push(a,"HEXIND")
	array.push(a,"HEXIND-OR")
	array.push(a,"HEXIND-WA")
	array.push(a,"HEXTAR")
	array.push(a,"HHGROUP")
	array.push(a,"HHGROUP-WA")
	array.push(a,"HHHCORP")
	array.push(a,"HIAPTEK")
	array.push(a,"HIBISCS")
	array.push(a,"HIGHTEC")
	array.push(a,"HIL")
	array.push(a,"HIL-WB")
	array.push(a,"HLIND")
	array.push(a,"HOHUP")
	array.push(a,"HOMERIZ")
	array.push(a,"HOMERIZ-WB")
	array.push(a,"HOMERIZ-WC")
	array.push(a,"HONGSENG")
	array.push(a,"HONGSENG-WA")
	array.push(a,"PTT")
	array.push(a,"HPMT")
	array.push(a,"HPPHB")
	array.push(a,"HSL")
	array.push(a,"HSPLANT")
	array.push(a,"HSSEB")
	array.push(a,"HSSEB-WA")
	array.push(a,"HTPADU")
	array.push(a,"HUAYANG")
	array.push(a,"HUBLINE")
	array.push(a,"HUBLINE-WC")
	array.push(a,"HUPSENG")
	array.push(a,"HWATAI")
	array.push(a,"HWGB")
	array.push(a,"IBRACO")
	array.push(a,"ICON")
	array.push(a,"ICON-WA")
	array.push(a,"ICONIC")
	array.push(a,"IDEAL")
	array.push(a,"IFCAMSC")
	array.push(a,"IHH")
	array.push(a,"IJM")
	array.push(a,"IMASPRO")
	array.push(a,"INARI")
	array.push(a,"INCKEN")
	array.push(a,"ZENTECH")
	array.push(a,"INNATURE")
	array.push(a,"INNO")
	array.push(a,"INTA")
	array.push(a,"INTA-WA")
	array.push(a,"IOICORP")
	array.push(a,"JSB")
	array.push(a,"IQGROUP")
	array.push(a,"IQZAN")
	array.push(a,"IREKA")
	array.push(a,"IRIS")
	array.push(a,"ITRONIC")
	array.push(a,"IVORY")
	array.push(a,"IWCITY")
	array.push(a,"JADEM")
	array.push(a,"JADI")
	array.push(a,"JAG")
	array.push(a,"JAKS")
	array.push(a,"JAKS-WB")
	array.push(a,"JAKS-WC")
	array.push(a,"JAYCORP")
	array.push(a,"JCY")
	array.push(a,"JETSON")
	array.push(a,"JHM")
	array.push(a,"JIANKUN")
	array.push(a,"JIANKUN-WA")
	array.push(a,"JISHAN")
	array.push(a,"JKGLAND")
	array.push(a,"JTIASA")
	array.push(a,"K1")
	array.push(a,"K1-WC")
	array.push(a,"KAB")
	array.push(a,"KAB-WA")
	array.push(a,"KAMDAR")
	array.push(a,"KANGER")
	array.push(a,"KANGER-WB")
	array.push(a,"KAREX")
	array.push(a,"KARYON")
	array.push(a,"KAWAN")
	array.push(a,"KEINHIN")
	array.push(a,"KEN")
	array.push(a,"KERJAYA")
	array.push(a,"KERJAYA-WB")
	array.push(a,"KESM")
	array.push(a,"KFIMA")
	array.push(a,"KGB")
	array.push(a,"KGB-WB")
	array.push(a,"KGROUP")
	array.push(a,"KGROUP-WC")
	array.push(a,"KHIND")
	array.push(a,"KHJB")
	array.push(a,"KIALIM")
	array.push(a,"KIMHIN")
	array.push(a,"KIMLUN")
	array.push(a,"KIMLUN-WA")
	array.push(a,"KKB")
	array.push(a,"KLCC")
	array.push(a,"KLK")
	array.push(a,"KMLOONG")
	array.push(a,"KMLOONG-WB")
	array.push(a,"KNUSFOR")
	array.push(a,"KOBAY")
	array.push(a,"KOMARK")
	array.push(a,"KOMARK-WC")
	array.push(a,"KOSSAN")
	array.push(a,"KOTRA")
	array.push(a,"KPJ")
	array.push(a,"RENEUCO")
	array.push(a,"RENEUCO-WA")
	array.push(a,"KPPROP")
	array.push(a,"KPS")
	array.push(a,"KPSCB")
	array.push(a,"KRETAM")
	array.push(a,"KRONO")
	array.push(a,"KSL")
	array.push(a,"KSSC")
	array.push(a,"KUB")
	array.push(a,"KYM")
	array.push(a,"L&G")
	array.push(a,"LAGENDA")
	array.push(a,"LAGENDA-WB")
	array.push(a,"RKI")
	array.push(a,"LAYHONG")
	array.push(a,"LAYHONG-WA")
	array.push(a,"LBALUM")
	array.push(a,"LBS")
	array.push(a,"LCTITAN")
	array.push(a,"LEBTECH")
	array.push(a,"LEESK")
	array.push(a,"LIIHEN")
	array.push(a,"LIONIND")
	array.push(a,"LIONPSIM")
	array.push(a,"LITRAK")
	array.push(a,"LKL")
	array.push(a,"LOTUS")
	array.push(a,"LOTUS-WB")
	array.push(a,"LSTEEL")
	array.push(a,"LTKM")
	array.push(a,"LUXCHEM")
	array.push(a,"LYC")
	array.push(a,"XOXTECH")
	array.push(a,"MAGNA")
	array.push(a,"MAGNI")
	array.push(a,"MAHSING")
	array.push(a,"MALAKOF")
	array.push(a,"MALTON")
	array.push(a,"MASTEEL")
	array.push(a,"MASTEEL-OR")
	array.push(a,"MASTER")
	array.push(a,"MATRIX")
	array.push(a,"MAXIM")
	array.push(a,"MAXIS")
	array.push(a,"MBL")
	array.push(a,"MBL-WA")
	array.push(a,"MBMR")
	array.push(a,"MCEHLDG")
	array.push(a,"MCEMENT")
	array.push(a,"MCLEAN")
	array.push(a,"MCOM")
	array.push(a,"MCT")
	array.push(a,"MEDIAC")
	array.push(a,"MEGASUN")
	array.push(a,"MELATI")
	array.push(a,"MELEWAR")
	array.push(a,"MELEWAR-WB")
	array.push(a,"MENANG")
	array.push(a,"MENTIGA")
	array.push(a,"MERCURY")
	array.push(a,"MERIDIAN")
	array.push(a,"MERIDIAN-WB")
	array.push(a,"MERIDIAN-WC")
	array.push(a,"MESB")
	array.push(a,"MESB-WA")
	array.push(a,"MESTRON")
	array.push(a,"MESTRON-WA")
	array.push(a,"METFSID")
	array.push(a,"METFUS50")
	array.push(a,"MFCB")
	array.push(a,"MFGROUP")
	array.push(a,"MFLOUR")
	array.push(a,"MFLOUR-WC")
	array.push(a,"MGB")
	array.push(a,"MGRC")
	array.push(a,"MHB")
	array.push(a,"MHC")
	array.push(a,"MHCARE")
	array.push(a,"MI")
	array.push(a,"MICROLN")
	array.push(a,"MIECO")
	array.push(a,"MIKROMB")
	array.push(a,"MILUX")
	array.push(a,"MINDA")
	array.push(a,"MINETEC")
	array.push(a,"MINHO")
	array.push(a,"MISC")
	array.push(a,"MITRA")
	array.push(a,"MITRA-WE")
	array.push(a,"MJPERAK")

	b = array.new_string()
	array.push(b,"MKH")
	array.push(b,"MKLAND")
	array.push(b,"MMAG")
	array.push(b,"MMAG-WB")
	array.push(b,"MMCCORP")
	array.push(b,"MMIS")
	array.push(b,"MMSV")
	array.push(b,"MOBILIA")
	array.push(b,"MPAY")
	array.push(b,"MPCORP")
	array.push(b,"MPI")
	array.push(b,"MPSOL")
	array.push(b,"MPSOL-WA")
	array.push(b,"MQTECH")
	array.push(b,"MQTECH-WA")
	array.push(b,"MRCB")
	array.push(b,"MRCB-WB")
	array.push(b,"MRDIY")
	array.push(b,"MSM")
	array.push(b,"MSNIAGA")
	array.push(b,"MTRONIC")
	array.push(b,"MTRONIC-WA")
	array.push(b,"MUDA")
	array.push(b,"MUH")
	array.push(b,"MUHIBAH")
	array.push(b,"MUIPROP")
	array.push(b,"MYCRON")
	array.push(b,"MYCRON-WA")
	array.push(b,"MYEG")
	array.push(b,"MYETFDJ")
	array.push(b,"MYETFID")
	array.push(b,"N2N")
	array.push(b,"N2N-WB")
	array.push(b,"NADIBHD")
	array.push(b,"NAIM")
	array.push(b,"NATWIDE")
	array.push(b,"NCT")
	array.push(b,"NESTCON")
	array.push(b,"NESTLE")
	array.push(b,"NEXGRAM")
	array.push(b,"NEXGRAM-WA")
	array.push(b,"NEXGRAM-WB")
	array.push(b,"NEXGRAM-WC")
	array.push(b,"NGGB")
	array.push(b,"NHFATT")
	array.push(b,"NICE")
	array.push(b,"NICE-WB")
	array.push(b,"NIHSIN")
	array.push(b,"NIHSIN-WB")
	array.push(b,"NOTION")
	array.push(b,"NOTION-WC")
	array.push(b,"NOVAMSC")
	array.push(b,"NPC")
	array.push(b,"NPS")
	array.push(b,"NWP")
	array.push(b,"NYLEX")
	array.push(b,"OCB")
	array.push(b,"OCK")
	array.push(b,"OCK-WB")
	array.push(b,"OCNCASH")
	array.push(b,"OCR")
	array.push(b,"OCR-WD")
	array.push(b,"OFI")
	array.push(b,"OIB")
	array.push(b,"OIB-WA")
	array.push(b,"OKA")
	array.push(b,"OMESTI")
	array.push(b,"OMESTI-WC")
	array.push(b,"OPCOM")
	array.push(b,"OPTIMAX")
	array.push(b,"ALRICH")
	array.push(b,"ALRICH-WA")
	array.push(b,"ORNA")
	array.push(b,"OVH")
	array.push(b,"OWG")
	array.push(b,"OWG-WA")
	array.push(b,"OWG-WB")
	array.push(b,"PA")
	array.push(b,"PA-WB")
	array.push(b,"PADINI")
	array.push(b,"PANTECH")
	array.push(b,"PANTECH-WB")
	array.push(b,"PAOS")
	array.push(b,"PAOS-WA")
	array.push(b,"PARAGON")
	array.push(b,"PARAMON")
	array.push(b,"PARAMON-WA")
	array.push(b,"PARKSON")
	array.push(b,"PASDEC")
	array.push(b,"PASDEC-WA")
	array.push(b,"PASUKGB")
	array.push(b,"PASUKGB-WA")
	array.push(b,"PBA")
	array.push(b,"PCCS")
	array.push(b,"PCCS-WA")
	array.push(b,"PCHEM")
	array.push(b,"PDZ")
	array.push(b,"PDZ-OR")
	array.push(b,"PDZ-WB")
	array.push(b,"PEB")
	array.push(b,"PECCA")
	array.push(b,"PELIKAN")
	array.push(b,"PENERGY")
	array.push(b,"PENTA")
	array.push(b,"PERDANA")
	array.push(b,"PERMAJU")
	array.push(b,"PERMAJU-WA")
	array.push(b,"PESONA")
	array.push(b,"PESTECH")
	array.push(b,"PETDAG")
	array.push(b,"PETGAS")
	array.push(b,"PETRONM")
	array.push(b,"PGLOBE")
	array.push(b,"PHARMA")
	array.push(b,"PHB")
	array.push(b,"PHB-WB")
	array.push(b,"PICORP")
	array.push(b,"PIE")
	array.push(b,"PJBUMI")
	array.push(b,"PJBUMI-WA")
	array.push(b,"PLB")
	array.push(b,"PLENITU")
	array.push(b,"PLS")
	array.push(b,"PLS-WA")
	array.push(b,"PMBTECH")
	array.push(b,"PMBTECH-WA")
	array.push(b,"PMETAL")
	array.push(b,"PMHLDG")
	array.push(b,"PNEPCB")
	array.push(b,"PNEPCB-WA")
	array.push(b,"PNEPCB-WB")
	array.push(b,"POHKONG")
	array.push(b,"PGF")
	array.push(b,"POS")
	array.push(b,"PPB")
	array.push(b,"PPHB")
	array.push(b,"PRESTAR")
	array.push(b,"PRIVA")
	array.push(b,"PRLEXUS")
	array.push(b,"PRLEXUS-WB")
	array.push(b,"PRTASCO")
	array.push(b,"PRTASCO-WA")
	array.push(b,"PTARAS")
	array.push(b,"PTRANS")
	array.push(b,"PTRANS-WB")
	array.push(b,"PUC")
	array.push(b,"PUC-WA")
	array.push(b,"PUNCAK")
	array.push(b,"PWF")
	array.push(b,"PWORTH")
	array.push(b,"PWROOT")
	array.push(b,"PWROOT-WA")
	array.push(b,"PWRWELL")
	array.push(b,"QES")
	array.push(b,"QL")
	array.push(b,"QUALITY")
	array.push(b,"RALCO")
	array.push(b,"RANHILL")
	array.push(b,"RESINTC")
	array.push(b,"REVENUE")
	array.push(b,"REVENUE-WA")
	array.push(b,"REX")
	array.push(b,"RGTBHD")
	array.push(b,"RGTBHD-WB")
	array.push(b,"RGTECH")
	array.push(b,"RL")
	array.push(b,"RL-WA")
	array.push(b,"ROHAS")
	array.push(b,"RSAWIT")
	array.push(b,"RVIEW")
	array.push(b,"S&FCAP")
	array.push(b,"S&FCAP-WC")
	array.push(b,"SALCON")
	array.push(b,"SALCON-WB")
	array.push(b,"SALUTE")
	array.push(b,"SAM")
	array.push(b,"SAMAIDEN")
	array.push(b,"SAMAIDEN-WA")
	array.push(b,"SAPIND")
	array.push(b,"SAPNRG")
	array.push(b,"SAPNRG-WA")
	array.push(b,"SAPRES")
	array.push(b,"SASBADI")
	array.push(b,"SAUDEE")
	array.push(b,"SAUDEE-WB")
	array.push(b,"SBCCORP")
	array.push(b,"SCABLE")
	array.push(b,"SCBUILD")
	array.push(b,"SCGM")
	array.push(b,"SCIB")
	array.push(b,"SCIB-WB")
	array.push(b,"SCIENTX")
	array.push(b,"SCIENTX-WC")
	array.push(b,"SCNWOLF")
	array.push(b,"SCNWOLF-WA")
	array.push(b,"SCOMNET")
	array.push(b,"SCOMNET-WA")
	array.push(b,"SCOPE")
	array.push(b,"SDRED")
	array.push(b,"SDS")
	array.push(b,"SEACERA")
	array.push(b,"SEAL")
	array.push(b,"SEALINK")
	array.push(b,"SEDANIA")
	array.push(b,"SEEHUP")
	array.push(b,"SEERS")
	array.push(b,"SEG")
	array.push(b,"SENDAI")
	array.push(b,"SENDAI-WA")
	array.push(b,"SERBADK")
	array.push(b,"SERBADK-WA")
	array.push(b,"SERNKOU")
	array.push(b,"SERNKOU-WA")
	array.push(b,"SERSOL")
	array.push(b,"SERSOL-WA")
	array.push(b,"SGBHD")
	array.push(b,"SHCHAN")
	array.push(b,"SHH")
	array.push(b,"SIGN")
	array.push(b,"SIME")
	array.push(b,"SIMEPLT")
	array.push(b,"SIMEPROP")
	array.push(b,"SJC")
	array.push(b,"SKBSHUT")
	array.push(b,"SKPRES")
	array.push(b,"SKPRES-WB")
	array.push(b,"SLIC")
	array.push(b,"SLP")
	array.push(b,"SLVEST")
	array.push(b,"SLVEST-WA")
	array.push(b,"SMCAP")
	array.push(b,"SMCAP-WC")
	array.push(b,"SMETRIC")
	array.push(b,"SMETRIC-WA")
	array.push(b,"SMI")
	array.push(b,"SMILE")
	array.push(b,"SMILE-WA")
	array.push(b,"SMISCOR")
	array.push(b,"SMRT")
	array.push(b,"SMTRACK")
	array.push(b,"SNC")
	array.push(b,"SOLID")
	array.push(b,"SOLUTN")
	array.push(b,"SOP")
	array.push(b,"SPRING")
	array.push(b,"SPRING-WA")
	array.push(b,"SPRITZER")
	array.push(b,"SPSETIA")
	array.push(b,"STAR")
	array.push(b,"STELLA")
	array.push(b,"STRAITS")
	array.push(b,"STRAITS-WA")
	array.push(b,"SUCCESS")
	array.push(b,"SUMATEC")
	array.push(b,"SUNCON")
	array.push(b,"SUNSURIA")
	array.push(b,"SUNWAY")
	array.push(b,"SUNWAY-WB")
	array.push(b,"SUPERLN")
	array.push(b,"SUPERMX")
	array.push(b,"SUPREME")
	array.push(b,"SURIA")
	array.push(b,"SWKPLNT")
	array.push(b,"SWSCAP")
	array.push(b,"SWSCAP-WB")
	array.push(b,"SYF")
	array.push(b,"SYMLIFE")
	array.push(b,"SYSCORP")
	array.push(b,"SYSTECH")
	array.push(b,"T7GLOBAL")
	array.push(b,"TAANN")
	array.push(b,"TAFI")
	array.push(b,"TAKAFUL")
	array.push(b,"TALAMT")
	array.push(b,"TALIWRK")
	array.push(b,"TAMBUN")
	array.push(b,"TANCO")
	array.push(b,"TASHIN")
	array.push(b,"TCS")
	array.push(b,"TCS-WA")
	array.push(b,"TDM")
	array.push(b,"TECHNAX")
	array.push(b,"TEKSENG")
	array.push(b,"TELADAN")
	array.push(b,"TELADAN-WA")
	array.push(b,"TENAGA")
	array.push(b,"TEXCYCL")
	array.push(b,"TGL")
	array.push(b,"TGUAN")
	array.push(b,"THETA")
	array.push(b,"THHEAVY")
	array.push(b,"THPLANT")
	array.push(b,"THRIVEN")
	array.push(b,"TWL")
	array.push(b,"TIMECOM")
	array.push(b,"TIMWELL")
	array.push(b,"TITIJYA")
	array.push(b,"TJSETIA")
	array.push(b,"TM")
	array.push(b,"TMCLIFE")
	array.push(b,"TOCEAN")
	array.push(b,"TOMYPAK")
	array.push(b,"TONGHER")
	array.push(b,"TOPBLDS")
	array.push(b,"TOPGLOV")
	array.push(b,"TOPVISN")
	array.push(b,"TOYOVEN")
	array.push(b,"TOYOVEN-WB")
	array.push(b,"TPC")
	array.push(b,"TRC")
	array.push(b,"TRIMODE")
	array.push(b,"TROP")
	array.push(b,"TSH")
	array.push(b,"TSRCAP")
	array.push(b,"TTV")
	array.push(b,"UCHITEC")
	array.push(b,"UEMS")
	array.push(b,"ULICORP")
	array.push(b,"UMCCA")
	array.push(b,"UMS")
	array.push(b,"UMSNGB")
	array.push(b,"UMW")
	array.push(b,"UNIMECH")
	array.push(b,"UNISEM")
	array.push(b,"UNIWALL")
	array.push(b,"UOADEV")
	array.push(b,"UPA")
	array.push(b,"UTAMA")
	array.push(b,"UTDPLT")
	array.push(b,"UWC")
	array.push(b,"UZMA")
	array.push(b,"VC")
	array.push(b,"VC-WB")
	array.push(b,"VC-WC")
	array.push(b,"VELESTO")
	array.push(b,"VELESTO-WA")
	array.push(b,"VERSATL")
	array.push(b,"IHB")
	array.push(b,"IHB-WA")
	array.push(b,"VINVEST")
	array.push(b,"VINVEST-WE")
	array.push(b,"VIS")
	array.push(b,"VIS-WB")
	array.push(b,"VITROX")
	array.push(b,"VIZIONE")
	array.push(b,"VIZIONE-WC")
	array.push(b,"VIZIONE-WD")
	array.push(b,"VOLCANO")
	array.push(b,"VS")
	array.push(b,"VS-WB")
	array.push(b,"VSTECS")
	array.push(b,"WAJA")
	array.push(b,"WARISAN")
	array.push(b,"WASEONG")
	array.push(b,"WATTA")
	array.push(b,"WCT")
	array.push(b,"WEGMANS")
	array.push(b,"WEGMANS-WA")
	array.push(b,"WEGMANS-WB")
	array.push(b,"WELLCAL")
	array.push(b,"WIDAD")
	array.push(b,"WIDAD-WA")
	array.push(b,"WONG")
	array.push(b,"WOODLAN")
	array.push(b,"WPRTS")
	array.push(b,"WTHORSE")
	array.push(b,"WTK")
	array.push(b,"CITAGLB")
	array.push(b,"CITAGLB-WA")
	array.push(b,"CITAGLB-WB")
	array.push(b,"XINHWA")
	array.push(b,"XINHWA-WA")
	array.push(b,"XL")
	array.push(b,"XL-WA")
	array.push(b,"Y&G")
	array.push(b,"YBS")
	array.push(b,"YGL")
	array.push(b,"YKGI")
	array.push(b,"YLI")
	array.push(b,"YNHPROP")
	array.push(b,"YONGTAI")
	array.push(b,"YSPSAH")
	array.push(b,"ZECON")
	array.push(b,"ZELAN")
	array.push(b,"ZHULIAN")
	array.push(b,"ACEINNO")
	array.push(b,"AIM")
	array.push(b,"BENALEC")
	array.push(b,"CARZO")
	array.push(b,"ECOMATE")
	array.push(b,"ESCERAM")
	array.push(b,"ESCERAM-WB")
	array.push(b,"FARLIM")
	array.push(b,"GPACKET")
	array.push(b,"GPACKET-WB")
	array.push(b,"ICTZONE")
	array.push(b,"IJMPLNT")
	array.push(b,"KNM")
	array.push(b,"NTPM")
	array.push(b,"PARKWD")
	array.push(b,"PEKAT")
	array.push(b,"PENSONIC")
	array.push(b,"PENSONIC-WB")
	array.push(b,"RCECAP")
	array.push(b,"RTSTECH")
	array.push(b,"SHL")
	array.push(b,"SCGBHD")
	array.push(b,"TASCO")
	array.push(b,"TECHBND")
	array.push(b,"TECHBND-WA")
	array.push(b,"TNLOGIS")
	array.push(b,"TURIYA")
	array.push(b,"WANGZNG")
	array.push(b,"YB")
	array.push(b,"SWIFT")
	array.push(b,"CORAZA")
	array.push(b,"SENHENG")
	array.push(b,"CAPITALA")
	array.push(b,"SIAB")
	array.push(b,"FARMFRESH")
	array.push(b,"CENGILD")
	array.push(b,"GUOCO")
	array.push(b,"MNHLDG")
	array.push(b,"MTAG")
	array.push(b,"NOVA")
	array.push(b,"OMH")
	array.push(b,"POHUAT")
	array.push(b,"PGB")
	array.push(b,"REDTONE")
	array.push(b,"SCOMI")
	array.push(b,"SCOMI-WB")
	array.push(b,"SEB")
	array.push(b,"TEXCHEM")
	array.push(b,"TRIVE")
	array.push(b,"TRIVE-WC")
	array.push(b,"CNERGEN")
	array.push(b,"YEWLEE")
	array.push(b,"SENFONG")
	array.push(b,"EIB")
	array.push(b,"UNIQUE")
	array.push(b,"SNS")
	array.push(b,"AGMO") //NEW ENTRY NOV 2022
	array.push(b,"APPASIA")
	array.push(b,"APPASIA-WA")
	array.push(b,"APPASIA-Wb")
	array.push(b,"ASIAFILE")
	array.push(b,"BCMALL")
	array.push(b,"BCMALL-WA")
	array.push(b,"BETA")
	array.push(b,"CNASIA")
	array.push(b,"CNASIA-WA")
	array.push(b,"CNERGEN")
	array.push(b,"COMCORP")
	array.push(b,"COSMOS")
	array.push(b,"DELEUM")
	array.push(b,"EFFICEN")
	array.push(b,"EKSONS")
	array.push(b,"FAST")
	array.push(b,"FAST-WA")
	array.push(b,"FLBHD")
	array.push(b,"GCE")
	array.push(b,"HEXCARE")
	array.push(b,"HEXTECH")
	array.push(b,"HLT")
	array.push(b,"IBHD")
	array.push(b,"JFTECH")
	array.push(b,"JFTECH-WA")
	array.push(b,"KEYASIC")
	array.push(b,"KTB")
	array.push(b,"LBICAP")
	array.push(b,"LBICAP-WB")
	array.push(b,"LGMS")
	array.push(b,"AIRPORT")
	array.push(b,"MBSB")
	array.push(b,"M&G")
	array.push(b,"MUDAJYA")
	array.push(b,"MUDAJYA-WA")
	array.push(b,"NSOP")
	array.push(b,"ORGA")
	array.push(b,"PANSAR")
	array.push(b,"PANSAR-WA")
	array.push(b,"PRKCORP")
	array.push(b,"PERTAMA")
	array.push(b,"PRG")
	array.push(b,"PTRB")
	array.push(b,"RAMSSOL")
	array.push(b,"SFPTECH")
	array.push(b,"SHANG")
	array.push(b,"SINARAN")
	array.push(b,"SINARAN-WB")
	array.push(b,"SSB8")
	array.push(b,"SUNVIEW")
	array.push(b,"TECGUAN")
	array.push(b,"TOMEI")
	array.push(b,"UMC")
	array.push(b,"YXPM")

    var notmyx = syminfo.prefix != "MYX" and syminfo.prefix != "MYX_DLY"
    var found = (array.includes(a, syminfo.ticker)) or (array.includes(b, syminfo.ticker))
    var int result = 0
    result := found ? 0 : notmyx ? 2 : 1

//example using status()
//bgcolor(status() == 1 ? color.new(color.red, 90): status() == 0 ? color.new(color.green, 90) : color.new(color.blue, 90))

//example
// Function draw label
draw_label()=>
    
    var label l = na
    l_text = string(na)
    l_position_x = int(0)
    l_position_y = float(0.0)
    l_color = color(na)
    l_text_color = color(na)
    label.delete(l[1])

    l_position_x := bar_index + 1
    l_position_y := high 
    l_text_color := color.white

    //Contoh guna switch statement
    switch status()
        0 => l_text := syminfo.ticker + " [S]\n" + syminfo.description,
             l_color := color.green
        1 => l_text  := syminfo.ticker + " [NS]\n" + syminfo.description,
             l_color := color.red
        => l_text := syminfo.tickerid + "\n" +  syminfo.description,
             l_color := color.blue

    l := label.new(
             x          = l_position_x, 
             y          = l_position_y,
             color      = l_color,
             text       = l_text,
             textcolor  = l_text_color,
             style      = label.style_label_left, 
             size       = size.normal)
   
draw_label()