Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
583
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.02 KB | None | 0 0
  1. Times are Arizona which has no Daylight Savings Time = CDT -2
  2. Without images
  3.  
  4.  
  5. ------- Tuesday, March 13, 2018 -------
  6. 05:07 DMonkey: gm
  7. 05:16 harndog: gm
  8. 05:21 MrAct: Gm
  9. 05:23 Venice: I am hoping there is some ThinkScript code (or another solution) that will scan for equity "X" touching the "22" DMA. The scan would occur every "Y" minutes. Once the condition is met I would like to receive a SMS text message. Any constructive suggestions would be appreciated
  10. 05:42 MTS1: Venice; look up dynamic watchlist; you can have alerts set incl sms when securities are added = pass the scan filter. Not sure what you mean with touching 22; you'll have to clarify logic and someone here will help you translate that to script you can use in the filter; but sounds like the built in functions may be sufficient; DMA is a buit in sript.
  11. 05:44 Up_n_Up: Venice didn't like yesterday's answers, things didn't magically change overnight.
  12. 05:49 MTS1: hm you're right, didn't read that closely. Venice; http://tlc.thinkorswim.com/center/howToTos/thinkManual/MarketWatch.html
  13. Note that we;re just volunteers, not support. We can't change how the system works, we just know it well and like to help / learn from others.
  14. 05:50 MTS1: Good morning. Room FAQ: http://tos.mx/ZQmLy9
  15. A good starting place is having questions and taking a free platform tour. Contact support@thinkorswim.com
  16. This is a lounge of volunteers who do not work for TOS. We are not TOS support, just experienced users interested in coding.
  17.  
  18. When you're setting up your platform tour, request the chat room scripts created by TOS support. For sample scripts check out MyTrade/Mobius or check a search engine.
  19. 05:53 Venice: I am not expecting any magical change, Dynamic watchlist is a lead that either I overlooked or investigated without knowing the venicular. Might be the lead I was looking for. Thank you for that lead and the Mobius lead.
  20. 05:58 MTS1: YW
  21. 06:16 Blue_Oyster_Cult_SeriosBusines: Peabody .. did you get the one note gig thing going on with UTC ??
  22. 06:18 Blue_Oyster_Cult_SeriosBusines: sorry duh wrong room ....
  23. 06:24 twoshoes: Thanks tculs -- buffer seems to be bigger. I've got 16 pages from yesterday still in mine. Hoping for updates on the hours (nights & weekends), so the West Coast can join in the fun?
  24. 06:30 beergas: hey for fans of screen capture tools to post pics here. New to me is free PicPick. active development, free hand drawing, irregular areas, scrolling web pages.
  25. 06:32 beergas: hmm I had closed my chat. Today holds back to Mon 9:10am ET
  26. 06:33 Blue_Oyster_Cult_SeriosBusines: BG thanks - PicPick.
  27. 06:36 Blue_Oyster_Cult_SeriosBusines: windows only .... ok
  28. 06:45 MTS1: What else is there BoC??
  29. ;)
  30. 06:57 JohnnyQuotronKidderPeabodyAlum: gm
  31. 07:00 JohnnyQuotronKidderPeabodyAlum: BoC..didnt see anything from UTC regarding OneNote
  32. 07:01 MTS1: Johnny; right-click and check out his profile
  33. 07:01 MTS1: or search him on Mytrade
  34. 07:06 JohnnyQuotronKidderPeabodyAlum: BoC.. great band by the way,I'm no genius on MyTrade but te most recent post I see on UTC's page is from 2 months ago. Educate me. Please...
  35. 07:07 MTS1: he has links in his profile detail, not the posts
  36. 07:08 MTS1: hm maybe not
  37. 07:15 JohnnyQuotronKidderPeabodyAlum: BOC.. the link to your IV Rank IV Percentile Label seems to have been expired. Could you repost please. Look like a very interesting study and I am curious to study the code...
  38. 07:15 MTS1: I believe he used to have a link there; his twitter profile is there, maybe DM him? (Sorry we're not supposed to post outsidelinks in chat).
  39. 07:15 MTS1: BoC is not in the room
  40. 07:16 MTS1: He's usually haning out in swimlessons room. You can see on the right who's logged in
  41. 07:16 JohnnyQuotronKidderPeabodyAlum: Thank you...he was just here
  42. 07:16 MTS1: earlier
  43. 07:22 MTS1: Johnny; check out UTC's 3rd newest post; has link to onenote
  44. 07:24 JohnnyQuotronKidderPeabodyAlum: Thanks MTS...I am trying to actually download the notebook so that I can rad it on the plane this weekend.
  45. 07:25 JohnnyQuotronKidderPeabodyAlum: rad = read
  46. 07:26 MTS1: If you find out how let me know
  47. 07:26 Mobius: you would be better served reading the Intelligent Investor.
  48. 07:30 Nube: I would be well served to read it as well. I've only had it for about 5 years or so. No rushing into anything.
  49. 07:33 JohnnyQuotronKidderPeabodyAlum: mobius...read it years ago. I should probably read it again. But then I would need to sell Amazon.
  50. 07:55 Mobius: Intelligent is an operative word in the title. The author would never suggest selling and investment that was working. He might take exception with your method for making it though.
  51. 08:00 JohnnyQuotronKidderPeabodyAlum: Agreed. Benjamin Graham would never have bought Amazon. Not do I think he would have bought Boeing 18 months ago.
  52. 08:02 Nube: Graham wasn't investing for the last quarter to third of a highly liquid bull market in the Central Banker as Rock Star Era.
  53. 08:07 Nube: Q7k or bust©
  54. 08:11 Freakshow: Hi everyone...
  55. 08:11 Freakshow: does anyone know if I can use Balance of Market Power in a scan?
  56. 08:11 Freakshow: I cannot seem to find it in the study menu
  57. 08:11 Freakshow: I can assign it to a chart but ...
  58. 08:12 Nube: Freak, you should be able to reference that study in the scanner.
  59. 08:13 Nube: add study filter, then it's pretty straightforward
  60. 08:14 Tb8: Mobius: I've been looking for your study, but cannot find it. It was a study with blue labels showing statistics on something like closing above/below a high/low and percent move after that or something like that. If you know what I'm talking about, please post it. Thank you.
  61. 08:17 Tb8: Not blue labels, cyan labels and I think yellow, cyan and yellow labels
  62. 08:19 Freakshow: Nube... have a look, I cannot find it in any of the available lists.
  63. 08:19 Freakshow: it's very, very odd
  64. 08:19 Freakshow: You're corrrect, setting a study therein is straight forward
  65. 08:22 Freakshow: I just can't find it
  66. 08:27 Mobius: It is in the list of studies to scan with
  67. 08:28 Mobius: Oddly enough it's called BalanceOfMarketPower
  68. 08:29 Freakshow: what the truck
  69. 08:29 Freakshow: hang on...
  70. 08:33 Freakshow: ok ok, sorry... I guess I expected it to be in the standard places.
  71. 08:33 Freakshow: Thanks Mobius
  72. 09:06 Tb8: Mobius: Anything?
  73. 09:07 Mobius: Tb.. I have thousands of studies and hundreds for statistical studies. You'll have to narrow it down
  74. 09:08 Tb8: Hmm, it was def. a statistical study. I think it was showing the stats for when the price opens above/below prior day high/low
  75. 09:13 Mobius: See if this is the one you want
  76.  
  77. # Daily Bias
  78. # Mobius
  79. # Study tracks the open vs previous close and current days closing bias
  80. # V01.07.2015
  81.  
  82. def RTHopen = open(period = AggregationPeriod.Day);
  83. def prevRTHclose = close(period = AggregationPeriod.Day)[1];
  84. def RTHclose = close(period = AggregationPeriod.Day);
  85. def countUp = if RTHopen < prevRTHclose and
  86. RTHclose < RTHopen
  87. then countUp[1] + 1
  88. else countUp[1];
  89. def countDn = if RTHopen > prevRTHclose and
  90. RTHclose > RTHopen
  91. then countDn[1] + 1
  92. else countDn[1];
  93. def barCount = compoundValue(1, barCount[1] + 1, 0);
  94. def Pup = (barCount - countUp) / barNumber();
  95. def Pdn = (barCount - countDn) / barNumber();
  96. AddLabel(1, "%O < PC and C < O = " + AsPercent(Pup) +
  97. " %O > PC and C > O = " + AsPercent(Pdn),
  98. if RTHopen < prevRTHclose and RTHclose < RTHopen
  99. then color.red
  100. else if RTHopen < prevRTHclose and RTHclose > RTHopen
  101. then color.yellow
  102. else color.white);
  103. # End Code Daily Bias
  104.  
  105. 09:19 AlphaInvestor: Mobius - those are compelling stats
  106. 09:19 rbldbl: Is there a td website where I can search for thinkscripts?
  107. 09:20 Mobius: no
  108. 09:22 Nube: Mobius mytrade page is the best place for finding scrips
  109. 09:24 rbldbl: what is mytrade page ?
  110. 09:26 Mobius: Every TOS client has a Blog page. Under the Tools Tab. You can right click a nickname and go to profile for their MyTrade Page
  111. 09:26 MTS1: http://tlc.thinkorswim.com/center/reference/Tech-Indicators/studies-library.html = TD webpage & place to start. Custom studies see above.
  112. 09:27 MTS1: Contact support@thinkorswim.com & request the chat room scripts created by TOS support
  113. 09:28 MTS1: But most of the best scripts are on Mobius' MyTrade;)
  114. 09:32 rbldbl: do I need a script to find gappers ?
  115. 09:33 DMonkey: built in scan for gappers under price performance on the scan tab....
  116. 09:42 stan-: the custom color setting in the new update overrides even the defined colors in custom thinkscript, don't like that at all
  117. 09:44 AlphaInvestor: Stan - that is why I moved entirely to named colors after the last GUI update Color.Green, Color.Cyan, Color.Gray ... those do not change
  118. 09:46 abts: does anyone have a ideas where i could get help in using equity strategies and possibly builing custom strategy or is learing writing script from the ToS TLC my only option?
  119. 09:47 abts: that should have been Building custom Strategies
  120. 09:48 AlphaInvestor: abts - TLC an this room
  121. 09:51 abts: ok thx
  122. 10:28 mkx: Hi, quick question for the group. I combined a group of moving averages into a single study. However if there are not enough bars for the longest one (200)), it will not draw any. Is there a way I can prevent this from happening by adjusting the code?
  123. 10:29 mkx: thanks in advance for any advice
  124. 10:29 AlphaInvestor: mkx - are you sure - in the past "pre-fetch" would always grab enough data from off chart to show all MA's (most other indicators fail)
  125. 10:30 mkx: I think I am having the issue if a security does not have enough data, especially monthly if it does not have 200 months, or some more recent IPOs that do not have 200 days
  126. 10:31 Nube: if barnumber() is greater than 200 then data else double.nan
  127. 10:31 mkx: It looks like none will draw on the chart until there are 200 data points available as that is the longest MA I have there.
  128. 10:31 AlphaInvestor: ah, recent IPO's would cause an issue for sure
  129. 10:33 AlphaInvestor: Nube's method may work, if not change the double.nan to 0 (zero) and they should all plot, but t he 200 MA may be wrong
  130. 10:41 lioness: Hi all! inorder to limit scan results (within 4% ATR), I added following , but results are not convincing. I would appreciate guidence on it. ( (((close) / WildersAverage(TrueRange(high, close, low), 14))) > 25) Thanks in advance. I used it on Agg Pr DAY.
  131. 10:44 mkx: Hmm, I think I am doing something wrong. apologies for a simple question, but I am not very experienced with thinkscript yet
  132. 10:44 mkx: code is below. The 100 is how I have them entered, but I cant get the if to work correctly
  133.  
  134.  
  135. input price100 = close;
  136. input length100 = 100;
  137.  
  138. plot SMA100 = Average(price100, length100);
  139. SMA100.SetDefaultColor(Color.DARK_ORANGE);
  140.  
  141.  
  142.  
  143.  
  144. input price200 = close;
  145. input length200 = 200;
  146.  
  147. plot SMA200 = if(barnumber() > 200 then Average(price200, length200) else double.NaN);
  148. SMA200.SetDefaultColor(Color.YELLOW);
  149. 10:48 lioness: Thanks in advance for any guidence on this query! Inorder to limit scan results (within 4% ATR), I added following , but results are not convincing. ( (((close) / WildersAverage(TrueRange(high, close, low), 14))) > 25) . I used it on Agg Pr DAY.
  150. 10:51 AlphaInvestor: Lioness - if you PLOT (((close) / WildersAverage(TrueRange(high, close, low), 14))) what kind of numbers do you get - what range
  151. 10:52 MrAct: Can one build custom alerts to track option flows
  152. 10:53 lioness: I shall check and revert to you. Thanks to you.
  153. 10:59 lioness: Dear Alpha. It shows invalid statement. Here is my scan: (Average("data" = volume, "length" = 10) / 1000000) * (close / 20) is greater than 1.98 and plot (((close) / WildersAverage(TrueRange(high, close, low), 14))) > 25
  154. 11:03 AlphaInvestor: Lioness - PLOT the data you are trying to compare to 25 -- using PLOT and ADDLABEL are the only ways to debug charts and scans
  155. 11:03 Mobius: mkx - Your code will limit the plot to bar numbers greater than 200
  156. 11:05 lioness: Dear Alpha. Tnx. I shall consider your advice.
  157. 11:07 FrankB3: Mr. Scripts is doing tick s on trader_TV
  158. 11:09 FrankB3: David how many ticks in a minute ??
  159. 11:14 precious_roy: frank-how ever many occur in a minute
  160. 11:14 precious_roy: no set amount
  161. 11:15 FrankB3: I thinks ticks per minute,, would be bullish ???
  162. 11:16 lioness: Dear Alpha. What is the correct code to scan stocks that have ATR > 4 % May be my code has some error? Tnx in advance.
  163. 11:17 FrankB3: sort of like a RPM gauge ????
  164. 11:17 AlphaInvestor: Lioness - plot your indicator, then decide what the thing after the > sign should be
  165. 11:18 AlphaInvestor: The only reliable way to test indicator based scans is to a) Build them in the Chart, then b) deploy them into the Scanner
  166. 11:19 AlphaInvestor: without doing that you are just guessing without tessing
  167. 11:23 lioness: OK, Dear Alpha. I'll further put in my best efforts.
  168. 11:28 Harrison4: Does anyone have a scanner for unusally Option activity?
  169. 11:29 AlphaInvestor: The Sizzle Index - the little icon that looks like a fire on the top right of the Scan tab
  170. 11:56 Nube: Q7k was a joke, you can put it back up where it belongs now.
  171. 12:01 amalia: lol ^
  172. 12:12 Suchin: I am new to Trading and TOS Scripting too. What is the best place to learn TOS Scripting ? I have done little bit of Learning in TOS WebSite. I would like to experiment few things with Paper Money. The codes posted by fellow Traders are more advanced/complex to me. Is there any training offered you know of ? Any books ? Links ?
  173. 12:14 DownTheHatch: Best starting point: http://tlc.thinkorswim.com/center/howToTos/tutorials.html
  174. 12:17 Suchin: I have done that already :-)
  175. 12:17 MTS1: Suchin; Room FAQ: http://tos.mx/ZQmLy9 has more details as well. Contact support@thinkorswim.com request the chat room scripts created by TOS support. I believe SwimLessons room has sessions also. http://tlc.thinkorswim.com/center/reference/ you can check details on the functions
  176. 12:18 lioness: Dear AlphaInvestor. I noticed it is giving erroneous results in a Dynamic scan only (but 100% OK, if run manually). (Average("data" = volume, "length" = 10) / 1000000) * (close / 20) is greater than 1.98 and plot (((close) / WildersAverage(TrueRange(high, close, low), 14))) > 25
  177. 12:18 MTS1: This room is a great place when you are stuck, or just learn how things are solved / coded.
  178. 12:18 DownTheHatch: if you've done all of the tutorials, I'm not sure why at least some of what is posted here is beyond you.
  179. 12:18 emanjo: Is there a way to combine Nasdaq and NYSE gainers/losers?
  180. 12:19 DownTheHatch: addition.
  181. 12:19 MTS1: Emanjo Combine the two indicators? You can add a "+" in between when you select both symbols on a chart.
  182. 12:20 lioness: Dear AlphaInvestor. I noticed it is giving erroneous results in a Dynamic scan only (but 100% OK, if run manually). (Average("data" = volume, "length" = 10) / 1000000) * (close / 20) is greater than 1.98 and ((1)/ (((close) / WildersAverage(TrueRange(high, close, low), 14)))) > 0.04
  183. 12:20 MTS1: Lioness; possible devide by 0?
  184. 12:22 emanjo: Got it. Thanks
  185. 12:23 lioness: MTS1 ;-) No way. ;-) I think Dynamic scan don't populate live, which it is supposed to be.
  186. 12:24 lioness: MTS1 ;-) No way. ;-) I think Dynamic scan doesn't populate live, which it is supposed to be.
  187. 12:26 Mobius: lioness - explain the logic of your scan. What exactly are you looking for
  188. 12:29 lioness: Dear Mobius.I actually wish to concentrate on only those candidates which qualify 5 conditions, above is one of the conditions . This is to minimize the work and concentrate on few.
  189. 12:31 MTS1: Lioness; explain the logic what you're trying to accomplish in the scan statements above
  190. 12:35 lioness: Dear MTS1. If I consider high ATR candidates, that short lists the candidates, nothing else. Only to glue down on few than many.
  191. 12:48 Mobius: lioness - When it comes to ATR your code isn't really indicative of ATR being at a high value. You would be better served using an ATR rank and then looking for a value that suited your needs within the rank. Depending on your needs you may want that value to represent a high but unsustainable level or a low rank that meets a minimum requirement
  192. 12:52 AlphaInvestor: Mobius - reminds me of your post to me yesterday - bad logic is still logic
  193. 12:53 AlphaInvestor: I had a belly laugh over that post
  194. 12:54 lioness: You are right Dear Mobius. I shall do more DD on it . Tnx. Frankly I intend to go for those which have high ATR. Above was a examplr only. May be I must go for those with 7 % or more.
  195. 12:56 beergas: tidbit for this 9 yr bull. Yesterday S&P 500 least volatile stocks got to within 0.2% of a new high set in Jan. That high was > peaks 2011 & 2014.
  196. 13:03 AF59: Is this the right place for Mr Script by kier?
  197. 13:05 gentlejohn: rockn and roll
  198. 13:05 JoshN: aok
  199. 13:05 tradefusion: YEP
  200. 13:06 villager: ok
  201. 13:06 MorganRedFox: all good
  202. 13:06 james7967: yes
  203. 13:06 AF59: Finally I found you.
  204. 13:06 lil-joe: i can hear
  205. 13:06 mango911: hear you
  206. 13:06 beergas: thinkscript lounge Mr S
  207. 13:06 bbdoneit: workin
  208. 13:06 bitsandbytes: Can hear, fine! :-)
  209. 13:06 Brewcrew02: Anyone make money today?!?!?
  210. 13:06 DE419: hear ya.
  211. 13:06 APAGZ: How&aposd you do?
  212. 13:06 Brewcrew02: Down a bit
  213. 13:07 Suchin: How do we join Mr Script by Kier ?
  214. 13:07 lil-joe: click on Watch
  215. 13:07 bitsandbytes: Big day! up .04% LOL
  216. 13:07 Suchin: Awesome - Thank you !!!
  217. 13:07 hokiepirate: Was good until lunchtime
  218. 13:08 bbdoneit: Brew INTC in @ 50 calls in 2.65 out 5.00
  219. 13:08 lil-joe: bitcoin lol
  220. 13:08 Brewcrew02: Nice bb
  221. 13:08 bbdoneit: thanks Brew :)
  222.  
  223. 13:09 JohnnyQuotronKidderPeabodyAlum: I leave for three hours and it goes into the toilet.
  224. 13:09 ansky711: is the video working. I only see the thinkorswim logo
  225. 13:09 Somebody: Nice name Johnny lol
  226. 13:10 hokiepirate: you should see a chart
  227. 13:10 bbdoneit: rex has Trumps entire networth in his checking accounts lol
  228. 13:10 JohnnyQuotronKidderPeabodyAlum: thx
  229. 13:10 ansky711: I do now ..thanks
  230. 13:10 Brewcrew02: Just heard audio -Nothing now
  231. 13:10 APAGZ: Same. Video frozen
  232. 13:11 Blue_Oyster_Cult_SeriosBusines: vid ok for me
  233. 13:12 markps: boc, you on Android?
  234. 13:12 Blue_Oyster_Cult_SeriosBusines: NO !!!
  235. 13:12 Blue_Oyster_Cult_SeriosBusines: those mobile devices are not good with TOS
  236. 13:13 markps: is there a url? no tos at work
  237. 13:13 Blue_Oyster_Cult_SeriosBusines: sould not have answered so strong ... we anrn't in person for you to see body english
  238. 13:13 Blue_Oyster_Cult_SeriosBusines: click on that
  239. 13:14 Blue_Oyster_Cult_SeriosBusines: he's not on the weblist
  240. 13:14 Blue_Oyster_Cult_SeriosBusines: 
  241. 13:14 Brewcrew02: Working on PC
  242. 13:17 Frobozz: is there any chance this screencast is going to be archived for future viewing?
  243. 13:17 AlphaInvestor: never archived
  244. 13:18 Blue_Oyster_Cult_SeriosBusines: doubtfull these havent been for a longtime
  245. 13:18 arez6355: can you show us how you got the colored bars at the top left again? Thanks.
  246. 13:19 Blue_Oyster_Cult_SeriosBusines: get a screencapture program and be ready when they come out save for yourself ...
  247. 13:20 Frobozz: thanks
  248. 13:20 14MTH30n3: How do I get number of bars elapsed from the start of trading?
  249. 13:21 Blue_Oyster_Cult_SeriosBusines: 6355 this ? 
  250. 13:21 Blue_Oyster_Cult_SeriosBusines: start of trading?
  251. for the day or the week .. from when ?
  252. 13:22 IGOSODAMNHAM: Does anyone have a script that will make a column that tells me how many green consecitive candles a stock has? Any timeframe is fine, I cna adjust that.
  253. 13:22 Nube: 14MTH, look at barnumber(), that should get you started
  254. 13:22 IGOSODAMNHAM: so if there were 5 green candles in a row, it would say... 5 lol
  255. 13:23 Blue_Oyster_Cult_SeriosBusines: IGO there maybe something like that don't remeber will take a quick look in my invetory .. but don't hold your breath
  256. 13:23 arez6355: the multi-squeeze indicator
  257. 13:24 arez6355: but i want to know how he got his colored bars up on the top left
  258. 13:24 kenjo: Try Synchronize Crosshairs on Settings, General
  259. 13:24 Blue_Oyster_Cult_SeriosBusines: 6355 di dyou mean this 
  260. 13:25 Blue_Oyster_Cult_SeriosBusines: IGO I DIDN'T find what you wanted .. bet there is script somewhere on that BUT i do have this lower study
  261. 13:28 harndog: David, do you have Volume Node script?
  262. 13:28 harndog: I.e. matching those hand drawn volume areas
  263. 13:30 jjj: Can you plot overnight profile separate from daily profile?
  264. 13:30 AlphaInvestor: Igo - I don't know what a "green candle" is anymore - that changed with the new color schemes that were released on the weekend
  265. 13:31 Blue_Oyster_Cult_SeriosBusines: LOL
  266. 13:31 Blue_Oyster_Cult_SeriosBusines: three pink candles ... AI
  267. 13:31 kenjo: So, you do a type of "mean revert" trade to POC?
  268. 13:32 IGOSODAMNHAM: A green candle is just the closing price is higher than the opening price of the current candle
  269. 13:32 Blue_Oyster_Cult_SeriosBusines: trading wants to gravatate toward POC .. that is were the most people found VALUE
  270. 13:32 debra9361: What do the different color numbers mean?
  271. 13:32 JoshN: can you go back to the levels you drew on chart?
  272. 13:32 IGOSODAMNHAM: @blue moutain oyster, cool can I try that?
  273. 13:33 Venice: MTS1 - regarding your suggestions this morning - looks like you solved my problem. Thank you again ;)
  274. 13:33 Blue_Oyster_Cult_SeriosBusines: JOSH they use to explan them on TOS .. it deals with time and volume if youwill
  275. google Mind over Markets & Markets in Profile
  276. 13:33 JoshN: ty
  277. 13:33 14MTH30n3: @Blue_Oyster_Cult_SeriosBusines number of bars since start of today's trading... So on a 1 minute chart at 9:31 number of bars woudl be 1, at 9:32 it would be 2, etc
  278. 13:34 --swimLessons:
  279. http://tos.mx/Wdy6PE
  280. 13:34 lazybee: is there a way to split regular trading hours and extended as seperate monkey bars?
  281. 13:34 JohnnyQuotronKidderPeabodyAlum: A thinkscript question...is there a way to pull a symbol's sector or industry group if any in thinkscript?
  282. 13:34 Blue_Oyster_Cult_SeriosBusines: 14MTH do oyou know how to choose the time aggregates for the chart
  283. 13:35 harndog: When is next big release?
  284. 13:35 AlphaInvestor: Johnny - nope
  285. 13:35 14MTH30n3: In GUI or SCRIPT. Short answer yes
  286. 13:35 spokanesal: Were there any new things in last weekends update?
  287. 13:35 roy7694: I missed the beginning. How can I learn how to set up the charts?
  288. 13:35 Blue_Oyster_Cult_SeriosBusines: yeah we need more colors.......
  289. 13:36 AlphaInvestor: David - will we ever get historical data for the SeriesVolatility()
  290. 13:36 JoshN: how will the market generally respond to the levels you drew? and how long will it last? tomorrow...next week...?
  291. 13:36 JohnnyQuotronKidderPeabodyAlum: Alpha...bummer
  292. 13:36 lazybee: is it possible to paint each time frame using a different color?
  293. 13:36 harndog: David, another platform allows users to vote on preferences....Can we add a voting feature?
  294. 13:36 Blue_Oyster_Cult_SeriosBusines: ...
  295. 13:37 Blue_Oyster_Cult_SeriosBusines: chage to 
  296. 13:37 AlphaInvestor: Harndog - I vote for no voting system
  297. 13:37 james9268: Day trading specifically on the e's or would you specifically build lines for each position?
  298. 13:37 optioneeer: Can you tell the sell side vs the buy side volume on monkey charts?
  299. 13:38 JoshN: ty
  300. 13:38 harndog: lol
  301. 13:39 Blue_Oyster_Cult_SeriosBusines: http://tlc.thinkorswim.com/center/reference/Tech-Indicators/studies-library/M-N/MonkeyBars.html
  302. 13:39 spokanesal: time for show on Wed?
  303. 13:39 JoshN: very good, concise, and clear explination...thank you
  304. 13:40 JohnnyQuotronKidderPeabodyAlum: that was fun...
  305. 13:40 AlphaInvestor: Thanks David
  306. 13:40 JohnnyQuotronKidderPeabodyAlum: thank you david
  307. 13:40 harndog: Yes, thank you
  308. 13:42 JohnnyQuotronKidderPeabodyAlum: AI..off the top of your head can you think of a way to have thinkscript idenftify the symbol and then being up its sector etf? anything?
  309. 13:42 JohnnyQuotronKidderPeabodyAlum: Anyone have any ideas?
  310. 13:42 AlphaInvestor: Yes - but it would require you to have a huge IF statement including every symbol in your universe
  311. 13:43 JohnnyQuotronKidderPeabodyAlum: yea...thought of that too. That dog aint gonna hunt..
  312. 13:43 AlphaInvestor: nope
  313. 13:44 AlphaInvestor: You can add Industry and Sector to the Watchlist - then sort by it
  314. 13:44 gentlejohn: thank you
  315. 13:45 JohnnyQuotronKidderPeabodyAlum: its was those watch list fields that made me thik about calling the sector in a script
  316. 13:45 JohnnyQuotronKidderPeabodyAlum: I guess i could write the giant if and reference it in the active script
  317. 13:46 JohnnyQuotronKidderPeabodyAlum: thats so painful though
  318. 13:48 AlphaInvestor: you cannot Reference user scripts, only built-in ones
  319. 13:49 JohnnyQuotronKidderPeabodyAlum: good point...
  320. 14:06 JohnnyQuotronKidderPeabodyAlum: and let me guess , nesting a bunch of "or" isnt going to work either
  321. 14:06 JohnnyQuotronKidderPeabodyAlum: def sector_1 = if (getsymbol() == "SPY" or "eem") then 1 else 0;
  322. 14:10 AlphaInvestor: give up before you hurt yourself
  323. 14:13 DMonkey: memorize them...then no script is needed...
  324. 14:13 JohnnyQuotronKidderPeabodyAlum: so its really going to need to be one symbol per if else?
  325. 14:16 DMonkey: if getsymbol() == "A" or "B" or "C" then this else if "D" or "E" or "F" then that else the other;
  326. 14:18 DMonkey: if you dont already have a master list you are behind curve already...
  327. 14:18 AlphaInvestor: I have a couple thousand tickers memorized ... but I am a bit of a geek
  328. 14:19 JohnnyQuotronKidderPeabodyAlum: when i enter def sector_1 = if (getsymbol() == "SPY" or "eem") then 1 else 0; i get an error.
  329. 14:20 AlphaInvestor: if (getsymbol() == "SPY" or Getsymbol() == "eem")
  330. 14:21 AlphaInvestor: Johnny - remember - the many hours you spend coding this are hours that you can never get back
  331. 14:22 DMonkey: Im a bit slow myself alpha...only trade the crap out of a few things...easy to memorize....
  332. 14:23 JohnnyQuotronKidderPeabodyAlum: oh yuck... so i can concatenate the lines in excel easy pesy but getting them into thinkscript?
  333. 14:23 DMonkey: johnny....will this be a secnificant benefit to your trading?
  334. 14:23 JohnnyQuotronKidderPeabodyAlum: absolutely LOL
  335. 14:23 DMonkey: how so?
  336. 14:24 JohnnyQuotronKidderPeabodyAlum: kidding hence the LOL
  337. 14:24 AlphaInvestor: DMonkey "Im a bit slow myself" ha - yeah right
  338. 14:25 AlphaInvestor: what do you trade DMonkey?
  339. 14:26 amalia: Penny stocks!
  340. 14:26 amalia: lol Imagine that
  341. 14:27 DMonkey: mostly oil...
  342. 14:27 AlphaInvestor: DM - gotcha
  343. 14:27 JohnnyQuotronKidderPeabodyAlum: MLPs have turned up the last few days...
  344. 14:27 DMonkey: beans and wheat
  345. 14:28 amalia: So things that correlate seems like
  346. 14:28 MTS1: Interesting collection DM
  347. 14:28 DMonkey: gold / silver
  348. 14:28 AlphaInvestor: bananas?
  349. 14:29 DMonkey: cant get me hand out of the jar...
  350. 14:29 DMonkey: i refuse to let go of the bannanna...
  351. 14:51 amalia: Trading oil, do you also put a similar structured setup w ES since they have a 70%ish correlation?
  352. 15:27 JohnnyQuotronKidderPeabodyAlum: Ok so the 500 symbols are in their associated sectors. Now i need to logic to end up with the sector spyder symbol. any ideas? http://tos.mx/V25eYi
  353. 15:28 JohnnyQuotronKidderPeabodyAlum: the logic
  354. 15:37 JohnnyQuotronKidderPeabodyAlum: my goal, as you might have guessed is to get the symbol for the etf that the getsymbol() is in, then use that etf symbol to draw a comparison chart using the preexisting tos comparison chart script. But truth be told, I am not so great with the thinkscript logic needed for that part. Then its beer:thirty.
  355. 15:42 TraderBuddy: Is this code correctly referencing daily bars for the StochRSI? Using this on a 5 minute chart. Thanks.
  356. 15:42 TraderBuddy: input RSI_lengthR = 14;
  357. input over_boughtR = 80;
  358. input over_soldR = 20;
  359. input RSI_average_typeR = AverageType.WILDERS;
  360. input RSI_priceR = FundamentalType.CLOSE;
  361. input StochRSIaggregationPeriodR = AggregationPeriod.DAY;
  362. input KPeriodR = 14;
  363. input DPeriodR = 3;
  364. input slowing_periodR = 1;
  365. input averageTypeR = AverageType.SIMPLE;
  366.  
  367. def RSIR = RSI(price = Fundamental(RSI_priceR, period = StochRSIaggregationPeriodR), length = RSI_lengthR, averageType = RSI_average_typeR);
  368.  
  369. plot FullK = StochasticFull(over_boughtR, over_soldR, KPeriodR, DPeriodR, RSIR, RSIR, RSIR, slowing_periodR, averageTypeR).FullK;
  370. plot FullD = StochasticFull(over_boughtR, over_soldR, KPeriodR, DPeriodR, RSIR, RSIR, RSIR, slowing_periodR, averageTypeR).FullD;
  371. plot OverBoughtR = over_boughtR;
  372. plot OverSoldR = over_soldR;
  373.  
  374. FullK.SetDefaultColor(GetColor(5));
  375. FullD.SetDefaultColor(GetColor(0));
  376. OverBoughtR.SetDefaultColor(GetColor(1));
  377. OverSoldR.SetDefaultColor(GetColor(1));
  378. 16:56 MTS1: Johnny; maybe I'm not getting it: Would you not do that the same way as how you associated them with a sector etf now? You'd hard-code it and pick the ETF obviously you'd like to associate them with as they could be in multiple ETF's anyway.
  379. 17:09 JohnnyQuotronKidderPeabodyAlum: MTS1... my initial plan was to summ the generated values for all the sector sections. This value would total between 0-10. then write code so that if variable z = 1 then xly, if z = 2 the xlp etcetra etcetra. But i havent been able to make that work yet. any ideas???
  380. 17:11 JohnnyQuotronKidderPeabodyAlum: def sectorSpyLogic = logicXLY + logicXLP + logicXLE + logicXLF + logicXLV + logicXLI + logicXLB + logicXLRE + logicXLK + logicXLU;
  381. def bob = "TEST";
  382. def sectorSpySymbol1 = (if sectorSpyLogic == 1 then "XLY" else "SPY");
  383. AddLabel( yes, sectorSpyLogic + "now I need to impliment the logic" + bob);
  384. 17:11 JohnnyQuotronKidderPeabodyAlum: it doesnt work though and im not sure why yet
  385. 17:11 AlphaInvestor: If you just want a label for the sector ... that is easy peasy
  386. 17:12 JohnnyQuotronKidderPeabodyAlum: for you my friend
  387. 17:12 JohnnyQuotronKidderPeabodyAlum: im a newbie at this script stuff
  388. 17:13 AlphaInvestor: Add this to the bottom of your script:
  389. Addlabel(sector_XLY,"XLY-1",color.yellow);
  390. Addlabel(sector_XLP,"XLP-2",color.yellow);
  391. Addlabel(sector_XLE,"XLE-3",color.yellow);
  392. Addlabel(sector_XLF,"XLF-4",color.yellow);
  393. Addlabel(sector_XLV,"XLV-5",color.yellow);
  394. Addlabel(sector_XLI,"XLI-6",color.yellow);
  395. Addlabel(sector_XRE,"XRE-7",color.yellow);
  396. Addlabel(sector_XLB,"XLB-8",color.yellow);
  397. Addlabel(sector_XLK,"XLK-9",color.yellow);
  398. Addlabel(sector_XLU,"XLU-10",color.yellow);
  399. 17:13 JohnnyQuotronKidderPeabodyAlum: excel i rock. not so much with thinkscript. i am persistent though
  400. 17:13 FrankB3: 8:42 TraderBuddy: Your script looks similar to the ones I use, but for some reason your don't plot on the 5 min. chart::: I not a coder / scripter, so I can't tell whats going on:: you can use the lower two on a 5 min. chart ::: http://tos.mx/EQiXQD
  401. 17:13 AlphaInvestor: Only one of those labels will actually plot
  402. 17:14 AlphaInvestor: because 0 is false, and anything non-zero is true
  403. 17:14 JohnnyQuotronKidderPeabodyAlum: let me share the updated code. not really shooting for a label. drawing a comparison chartl line
  404. 17:14 JohnnyQuotronKidderPeabodyAlum: one moment for my updated code
  405. 17:15 AlphaInvestor: I said that adding a label was easy peasy ... YMMV on other uses
  406. 17:15 JohnnyQuotronKidderPeabodyAlum: http://tos.mx/yUabpY
  407. 17:15 AlphaInvestor: I already know it works ... i's tested it
  408. 17:16 JohnnyQuotronKidderPeabodyAlum: i's see your logic
  409. 17:16 AlphaInvestor: This might be better implemented as a Switch statement ... that way you can change more than one variable for each set of symbols
  410. 17:17 AlphaInvestor: one for a label, one for use elsewhere ... and not end up with 10 variables than then need to be further tested
  411. 17:17 AlphaInvestor: me and my brain are going to take the rest of the night off
  412. 17:17 AlphaInvestor: Later Traders
  413. 17:18 JohnnyQuotronKidderPeabodyAlum: im in big trouble then. i feel your pain though. i hope your portfolid performed better than mine today!
  414. 17:19 FrankB3: latter AI
  415. 17:30 LoneStranger: This has probably been asked and answered, but ... how do I get the color name of the current of the background color as defined in the "Color Scheme" of the Look and Feel options? If the Light scheme is being used, then it should return Color.WHITE (or 255, 255, 255) and if the Dark Scheme is being used then it should return Color.BLACK (or 0, 0, 0). I would like to change both the background and text color of labels depending on the Color Scheme.
  416.  
  417. 17:37 amalia: Pray, do tell us how that makes you a better trader
  418. 17:38 Jake-Elwood: doesn't really matter, thinkScript has no clue about the background color of the chart (unless it it put it there)
  419. 17:38 LoneStranger: Not sure whom the last comment by Amalia was intended for. I just came into the chat room
  420. 17:38 Jake-Elwood: you can't change the text color of labels either
  421. 17:40 Jake-Elwood: you are looking at the manual, right? that would be the place to see what attributes are exposed for changing.
  422. 17:43 LoneStranger: Ive lookd at the manual and the best I can come up with is the "AssignBackgroundColor" and "AddLabel" both of which take color as input. What I want is the this color to change depending on whether the color scheme is :light" or "dark"
  423. 17:44 Jake-Elwood: thinkScript has no clue about the background color of the chart
  424. 17:45 admin_bkTOS:
  425. This is a reminder that the thinkorswim chat rooms will be closing in 15 min. Forum hours are from 5am-8pm CT Monday-Thursday, and 5am-5pm CT on Friday. Please finish your conversations before 8pm CT.
  426.  
  427. 17:45 LoneStranger: But it should have some idea of the environment it is being run in...wish there were a getOptions(LookAndFeel.ColorScheme)...or something like that.
  428. 17:46 Jake-Elwood: should and does are a universe apart.
  429. 17:47 LoneStranger: or some variable that you can use similar to color.UPTICK -- we could use a color.BACKGROUND
  430. 17:47 amalia: Add it to the list of new features tos should add on their next update
  431. 17:47 Jake-Elwood: write ToS with your suggestions , we can't help you here
  432. 17:47 LoneStranger: That's what I'll have to do. Thanks.
  433. 17:48 amalia: yw
  434. 17:48 amalia: Goodnight room. Tomorrow is another day for another dollar
  435. 17:49 Jake-Elwood: u give up too soon. there's a whole 11 minutes left
  436. 18:00 admin_bkTOS: Thank you for using thinkorswim. Chat Rooms are available daily from 5am-8pm CT Monday-Thursday, and 5am-5pm CT on Friday for open discussion on the markets and trade related content
  437. TOS platform questions? email: support@thinkorswim.com
  438. or check out the Learning Center, full of demos on how to use thinkorswim trading and charting tools: http://tlc.thinkorswim.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement