TradingView
OstapChester
15 dic 2018 19:18

WIG20/30 Advance-decline Line 

WIG20 IndexGPW

Descrizione

Advance-decline line for Warsaw Stock Exchange (GPW)

EN: Since GPW doesn't give us advance/decline data similar to NYSE, it's not hard to calculate it manually (WIG20 and WIG30 - can be changed in settings)
PL: Wskaźnik A/D line dla giełdy Warszawskiej (działa dla WIG20 i WIG30)
Commenti
tranthanhdat1102
I changed it to my country market. But it only limit 40 securities. Are there anyway to have more securities? Like 200-300 securities
OstapChester
@tranthanhdat1102, There are probably some limitations in TradingView on how many securities can be accessed from single script
tranthanhdat1102
@OstapChester,
Hi i found a method to have more securities (~140). Your code is really helpful. Thank you very much.
But the adline of wig20 or wig30 is downtrend continously, it not appear as the picture you uploaded above.
Example: 2020-2021 WIG30 strongly uptrend, but ADline is downtrend. Could you please check it?
Thank you

Some symbol also outdated, here the updated list of wig20, 30

calc_ad_wig20() =>
ad("ALR")+ad("ALE")+ad("ACP")+ad("PEO")+ad("CDR")+ad("CPS")+ad("DNP")+ad("KTY")+ad("JSW")+ad("KGH")+ad("KRU")+ad("LPP")+ad("MBK")+ad("OPL")+ad("PKN")+ad("PCO")+ad("PGE")+ad("PKO")+ad("PZU")+ad("SPL")

calc_ad_wig30_ex() =>
ad("MIL")+ad("BMC")+ad("CCC")+ad("CIE")+ad("ENA")+ad("EUR")+ad("ATT")+ad("LWB")+ad("TPE")+ad("XTB")
cajole
Nicely done.
Altro