Add a Study Label intersecting Symbol with a List


Category:
0
0

Is it possible to add a Study to a chart which creates a Label Indicating whether a Symbol is intersecting with a List.

Basically I have 2 watchlists updated after every earnings season – EPS Beats and EPS Misss. The Label in the study would print out if the symbol is from the EPS Beat List or EPS Miss List.

Goal is to ensure that if we have a bullish trend for a stock and its coupled by EPS beat then we know its a strong buy and if it is an EPS miss and still goes up then it might be a sell

Marked as spam
Posted by (Questions: 5, Answers: 7)
Asked on May 8, 2020 1:19 pm
71 views
0
Private answer

Sorry but it is not possible for any code in a chart study to be able to "see" anything in a watchlist. The only solution would be to add every ticker in your watchlist into the chart study code and update that list within the code each time an item in the list was added or removed.

Now, if your watchlists happen to be created by using a custom scan. Well then the same logic used in the scan to create your list in the first place could be used to automatically flag ticker symbols according to the same logic. But if your trying to pull information directly from a saved personal watchlist into a custom chart study, that is completely impossible at this time on Thinkorswim.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on May 8, 2020 3:53 pm
0
Thanks. Would it be possible to provide a code which can take the following Beats and Misses and indicate a Label when the Symbol Matches the symbol in the list? I will add the list in 2 separate comments below
( at May 9, 2020 8:27 am)
0
Beats: TSLA,VRSN,BIIB,CMI,AGIO,LTC,THC,UAL,UTHR,MLNX,SRE,SYF,DPZ,IDXG,REGI,HUM,VRTX,SLG,STC,PH,URI,SNBR,ROK,VMI,TPX,EAT,CTXS,WLK,MTH,VC,PIPR,WWD,TRP,MCO,AXP,SPB,VLO,SPGI,WIRE,MUSA,LH,AMGN,TNET,PSX,USNA,PLD,BMRN,ILMN,FICO,TFX,RRD,FARO,LPLA,PFGC,RS,ACC,CI,YUMC,LNG,NSC,OPI,NGVT,LFUS,STAG,JNJ,EMN,MKSI,DXCM,LMT,TEL,AAPL,KMI,PKG,FFIV,USM,MTOR,KALU,MHO,STT,LLY,INT,KAI,SCL,HNI,LUV,JBT,HON,PJT,UNP,HRI,RMD,MGPI,MMP,SAIA,ASGN,BEN,PNC,TXN,HELE,TECH,KRA,DAL,PRLB,O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PPBI,TRMK,KRC,HCC,SMP,SYKE,EEX,SLM,JBHT,CNS,APH,SAFE,SCI,ST,FB,INSM,BKH,GE,CDNA,OPRX,NVT,BSX,SHEN,OHI,UNM,ONB,TDY,APD,ALRS,SBUX,PRGX,IMGN,TRN,ZEUS,JNPR,PDM,ACCO,CTT,CCC,UNTY,T,ECHO,AMTD,ODFL,MTRN,ALV,CIVB,AWI,CNXM,HAS,ATRC,APRN,NLY,SUM,YUM,HIG,VRAY,NCR,VKTX,FCN,SILK,MSGN,O,WLKP,FN,UMC,SCKT,FSP,TACO,SNAP,TRTN,ORLY,
( at May 9, 2020 8:38 am)
0
Would it be possible? Yes. Can it be done in the context of a Q&A forum were we provide free solutions? Absolutely not. It would take several hours to develop a piece of code to include all of these ticker symbols. And each time the list changed you would need to manually update several hundred lines of code. Which is exactly what I explained in my answer. The answer I provided was intended to demonstrate the absurdity of this request. Which apparently was not fully expressed until you decided to post the complete list of ticker symbols.
( at May 9, 2020 10:03 am)