Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Times are Arizona which has no Daylight Savings Time = CDT -2
- Without images
- ------- Tuesday, March 13, 2018 -------
- 05:07 DMonkey: gm
- 05:16 harndog: gm
- 05:21 MrAct: Gm
- 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
- 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.
- 05:44 Up_n_Up: Venice didn't like yesterday's answers, things didn't magically change overnight.
- 05:49 MTS1: hm you're right, didn't read that closely. Venice; http://tlc.thinkorswim.com/center/howToTos/thinkManual/MarketWatch.html
- 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.
- 05:50 MTS1: Good morning. Room FAQ: http://tos.mx/ZQmLy9
- A good starting place is having questions and taking a free platform tour. Contact support@thinkorswim.com
- This is a lounge of volunteers who do not work for TOS. We are not TOS support, just experienced users interested in coding.
- 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.
- 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.
- 05:58 MTS1: YW
- 06:16 Blue_Oyster_Cult_SeriosBusines: Peabody .. did you get the one note gig thing going on with UTC ??
- 06:18 Blue_Oyster_Cult_SeriosBusines: sorry duh wrong room ....
- 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?
- 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.
- 06:32 beergas: hmm I had closed my chat. Today holds back to Mon 9:10am ET
- 06:33 Blue_Oyster_Cult_SeriosBusines: BG thanks - PicPick.
- 06:36 Blue_Oyster_Cult_SeriosBusines: windows only .... ok
- 06:45 MTS1: What else is there BoC??
- ;)
- 06:57 JohnnyQuotronKidderPeabodyAlum: gm
- 07:00 JohnnyQuotronKidderPeabodyAlum: BoC..didnt see anything from UTC regarding OneNote
- 07:01 MTS1: Johnny; right-click and check out his profile
- 07:01 MTS1: or search him on Mytrade
- 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...
- 07:07 MTS1: he has links in his profile detail, not the posts
- 07:08 MTS1: hm maybe not
- 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...
- 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).
- 07:15 MTS1: BoC is not in the room
- 07:16 MTS1: He's usually haning out in swimlessons room. You can see on the right who's logged in
- 07:16 JohnnyQuotronKidderPeabodyAlum: Thank you...he was just here
- 07:16 MTS1: earlier
- 07:22 MTS1: Johnny; check out UTC's 3rd newest post; has link to onenote
- 07:24 JohnnyQuotronKidderPeabodyAlum: Thanks MTS...I am trying to actually download the notebook so that I can rad it on the plane this weekend.
- 07:25 JohnnyQuotronKidderPeabodyAlum: rad = read
- 07:26 MTS1: If you find out how let me know
- 07:26 Mobius: you would be better served reading the Intelligent Investor.
- 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.
- 07:33 JohnnyQuotronKidderPeabodyAlum: mobius...read it years ago. I should probably read it again. But then I would need to sell Amazon.
- 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.
- 08:00 JohnnyQuotronKidderPeabodyAlum: Agreed. Benjamin Graham would never have bought Amazon. Not do I think he would have bought Boeing 18 months ago.
- 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.
- 08:07 Nube: Q7k or bust©
- 08:11 Freakshow: Hi everyone...
- 08:11 Freakshow: does anyone know if I can use Balance of Market Power in a scan?
- 08:11 Freakshow: I cannot seem to find it in the study menu
- 08:11 Freakshow: I can assign it to a chart but ...
- 08:12 Nube: Freak, you should be able to reference that study in the scanner.
- 08:13 Nube: add study filter, then it's pretty straightforward
- 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.
- 08:17 Tb8: Not blue labels, cyan labels and I think yellow, cyan and yellow labels
- 08:19 Freakshow: Nube... have a look, I cannot find it in any of the available lists.
- 08:19 Freakshow: it's very, very odd
- 08:19 Freakshow: You're corrrect, setting a study therein is straight forward
- 08:22 Freakshow: I just can't find it
- 08:27 Mobius: It is in the list of studies to scan with
- 08:28 Mobius: Oddly enough it's called BalanceOfMarketPower
- 08:29 Freakshow: what the truck
- 08:29 Freakshow: hang on...
- 08:33 Freakshow: ok ok, sorry... I guess I expected it to be in the standard places.
- 08:33 Freakshow: Thanks Mobius
- 09:06 Tb8: Mobius: Anything?
- 09:07 Mobius: Tb.. I have thousands of studies and hundreds for statistical studies. You'll have to narrow it down
- 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
- 09:13 Mobius: See if this is the one you want
- # Daily Bias
- # Mobius
- # Study tracks the open vs previous close and current days closing bias
- # V01.07.2015
- def RTHopen = open(period = AggregationPeriod.Day);
- def prevRTHclose = close(period = AggregationPeriod.Day)[1];
- def RTHclose = close(period = AggregationPeriod.Day);
- def countUp = if RTHopen < prevRTHclose and
- RTHclose < RTHopen
- then countUp[1] + 1
- else countUp[1];
- def countDn = if RTHopen > prevRTHclose and
- RTHclose > RTHopen
- then countDn[1] + 1
- else countDn[1];
- def barCount = compoundValue(1, barCount[1] + 1, 0);
- def Pup = (barCount - countUp) / barNumber();
- def Pdn = (barCount - countDn) / barNumber();
- AddLabel(1, "%O < PC and C < O = " + AsPercent(Pup) +
- " %O > PC and C > O = " + AsPercent(Pdn),
- if RTHopen < prevRTHclose and RTHclose < RTHopen
- then color.red
- else if RTHopen < prevRTHclose and RTHclose > RTHopen
- then color.yellow
- else color.white);
- # End Code Daily Bias
- 09:19 AlphaInvestor: Mobius - those are compelling stats
- 09:19 rbldbl: Is there a td website where I can search for thinkscripts?
- 09:20 Mobius: no
- 09:22 Nube: Mobius mytrade page is the best place for finding scrips
- 09:24 rbldbl: what is mytrade page ?
- 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
- 09:26 MTS1: http://tlc.thinkorswim.com/center/reference/Tech-Indicators/studies-library.html = TD webpage & place to start. Custom studies see above.
- 09:27 MTS1: Contact support@thinkorswim.com & request the chat room scripts created by TOS support
- 09:28 MTS1: But most of the best scripts are on Mobius' MyTrade;)
- 09:32 rbldbl: do I need a script to find gappers ?
- 09:33 DMonkey: built in scan for gappers under price performance on the scan tab....
- 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
- 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
- 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?
- 09:47 abts: that should have been Building custom Strategies
- 09:48 AlphaInvestor: abts - TLC an this room
- 09:51 abts: ok thx
- 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?
- 10:29 mkx: thanks in advance for any advice
- 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)
- 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
- 10:31 Nube: if barnumber() is greater than 200 then data else double.nan
- 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.
- 10:31 AlphaInvestor: ah, recent IPO's would cause an issue for sure
- 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
- 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.
- 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
- 10:44 mkx: code is below. The 100 is how I have them entered, but I cant get the if to work correctly
- input price100 = close;
- input length100 = 100;
- plot SMA100 = Average(price100, length100);
- SMA100.SetDefaultColor(Color.DARK_ORANGE);
- input price200 = close;
- input length200 = 200;
- plot SMA200 = if(barnumber() > 200 then Average(price200, length200) else double.NaN);
- SMA200.SetDefaultColor(Color.YELLOW);
- 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.
- 10:51 AlphaInvestor: Lioness - if you PLOT (((close) / WildersAverage(TrueRange(high, close, low), 14))) what kind of numbers do you get - what range
- 10:52 MrAct: Can one build custom alerts to track option flows
- 10:53 lioness: I shall check and revert to you. Thanks to you.
- 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
- 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
- 11:03 Mobius: mkx - Your code will limit the plot to bar numbers greater than 200
- 11:05 lioness: Dear Alpha. Tnx. I shall consider your advice.
- 11:07 FrankB3: Mr. Scripts is doing tick s on trader_TV
- 11:09 FrankB3: David how many ticks in a minute ??
- 11:14 precious_roy: frank-how ever many occur in a minute
- 11:14 precious_roy: no set amount
- 11:15 FrankB3: I thinks ticks per minute,, would be bullish ???
- 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.
- 11:17 FrankB3: sort of like a RPM gauge ????
- 11:17 AlphaInvestor: Lioness - plot your indicator, then decide what the thing after the > sign should be
- 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
- 11:19 AlphaInvestor: without doing that you are just guessing without tessing
- 11:23 lioness: OK, Dear Alpha. I'll further put in my best efforts.
- 11:28 Harrison4: Does anyone have a scanner for unusally Option activity?
- 11:29 AlphaInvestor: The Sizzle Index - the little icon that looks like a fire on the top right of the Scan tab
- 11:56 Nube: Q7k was a joke, you can put it back up where it belongs now.
- 12:01 amalia: lol ^
- 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 ?
- 12:14 DownTheHatch: Best starting point: http://tlc.thinkorswim.com/center/howToTos/tutorials.html
- 12:17 Suchin: I have done that already :-)
- 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
- 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
- 12:18 MTS1: This room is a great place when you are stuck, or just learn how things are solved / coded.
- 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.
- 12:18 emanjo: Is there a way to combine Nasdaq and NYSE gainers/losers?
- 12:19 DownTheHatch: addition.
- 12:19 MTS1: Emanjo Combine the two indicators? You can add a "+" in between when you select both symbols on a chart.
- 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
- 12:20 MTS1: Lioness; possible devide by 0?
- 12:22 emanjo: Got it. Thanks
- 12:23 lioness: MTS1 ;-) No way. ;-) I think Dynamic scan don't populate live, which it is supposed to be.
- 12:24 lioness: MTS1 ;-) No way. ;-) I think Dynamic scan doesn't populate live, which it is supposed to be.
- 12:26 Mobius: lioness - explain the logic of your scan. What exactly are you looking for
- 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.
- 12:31 MTS1: Lioness; explain the logic what you're trying to accomplish in the scan statements above
- 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.
- 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
- 12:52 AlphaInvestor: Mobius - reminds me of your post to me yesterday - bad logic is still logic
- 12:53 AlphaInvestor: I had a belly laugh over that post
- 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.
- 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.
- 13:03 AF59: Is this the right place for Mr Script by kier?
- 13:05 gentlejohn: rockn and roll
- 13:05 JoshN: aok
- 13:05 tradefusion: YEP
- 13:06 villager: ok
- 13:06 MorganRedFox: all good
- 13:06 james7967: yes
- 13:06 AF59: Finally I found you.
- 13:06 lil-joe: i can hear
- 13:06 mango911: hear you
- 13:06 beergas: thinkscript lounge Mr S
- 13:06 bbdoneit: workin
- 13:06 bitsandbytes: Can hear, fine! :-)
- 13:06 Brewcrew02: Anyone make money today?!?!?
- 13:06 DE419: hear ya.
- 13:06 APAGZ: How&aposd you do?
- 13:06 Brewcrew02: Down a bit
- 13:07 Suchin: How do we join Mr Script by Kier ?
- 13:07 lil-joe: click on Watch
- 13:07 bitsandbytes: Big day! up .04% LOL
- 13:07 Suchin: Awesome - Thank you !!!
- 13:07 hokiepirate: Was good until lunchtime
- 13:08 bbdoneit: Brew INTC in @ 50 calls in 2.65 out 5.00
- 13:08 lil-joe: bitcoin lol
- 13:08 Brewcrew02: Nice bb
- 13:08 bbdoneit: thanks Brew :)
- 13:09 JohnnyQuotronKidderPeabodyAlum: I leave for three hours and it goes into the toilet.
- 13:09 ansky711: is the video working. I only see the thinkorswim logo
- 13:09 Somebody: Nice name Johnny lol
- 13:10 hokiepirate: you should see a chart
- 13:10 bbdoneit: rex has Trumps entire networth in his checking accounts lol
- 13:10 JohnnyQuotronKidderPeabodyAlum: thx
- 13:10 ansky711: I do now ..thanks
- 13:10 Brewcrew02: Just heard audio -Nothing now
- 13:10 APAGZ: Same. Video frozen
- 13:11 Blue_Oyster_Cult_SeriosBusines: vid ok for me
- 13:12 markps: boc, you on Android?
- 13:12 Blue_Oyster_Cult_SeriosBusines: NO !!!
- 13:12 Blue_Oyster_Cult_SeriosBusines: those mobile devices are not good with TOS
- 13:13 markps: is there a url? no tos at work
- 13:13 Blue_Oyster_Cult_SeriosBusines: sould not have answered so strong ... we anrn't in person for you to see body english
- 13:13 Blue_Oyster_Cult_SeriosBusines: click on that
- 13:14 Blue_Oyster_Cult_SeriosBusines: he's not on the weblist
- 13:14 Blue_Oyster_Cult_SeriosBusines: 
- 13:14 Brewcrew02: Working on PC
- 13:17 Frobozz: is there any chance this screencast is going to be archived for future viewing?
- 13:17 AlphaInvestor: never archived
- 13:18 Blue_Oyster_Cult_SeriosBusines: doubtfull these havent been for a longtime
- 13:18 arez6355: can you show us how you got the colored bars at the top left again? Thanks.
- 13:19 Blue_Oyster_Cult_SeriosBusines: get a screencapture program and be ready when they come out save for yourself ...
- 13:20 Frobozz: thanks
- 13:20 14MTH30n3: How do I get number of bars elapsed from the start of trading?
- 13:21 Blue_Oyster_Cult_SeriosBusines: 6355 this ? 
- 13:21 Blue_Oyster_Cult_SeriosBusines: start of trading?
- for the day or the week .. from when ?
- 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.
- 13:22 Nube: 14MTH, look at barnumber(), that should get you started
- 13:22 IGOSODAMNHAM: so if there were 5 green candles in a row, it would say... 5 lol
- 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
- 13:23 arez6355: the multi-squeeze indicator
- 13:24 arez6355: but i want to know how he got his colored bars up on the top left
- 13:24 kenjo: Try Synchronize Crosshairs on Settings, General
- 13:24 Blue_Oyster_Cult_SeriosBusines: 6355 di dyou mean this 
- 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
- 
- 13:28 harndog: David, do you have Volume Node script?
- 13:28 harndog: I.e. matching those hand drawn volume areas
- 13:30 jjj: Can you plot overnight profile separate from daily profile?
- 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
- 13:31 Blue_Oyster_Cult_SeriosBusines: LOL
- 13:31 Blue_Oyster_Cult_SeriosBusines: three pink candles ... AI
- 13:31 kenjo: So, you do a type of "mean revert" trade to POC?
- 13:32 IGOSODAMNHAM: A green candle is just the closing price is higher than the opening price of the current candle
- 13:32 Blue_Oyster_Cult_SeriosBusines: trading wants to gravatate toward POC .. that is were the most people found VALUE
- 13:32 debra9361: What do the different color numbers mean?
- 13:32 JoshN: can you go back to the levels you drew on chart?
- 13:32 IGOSODAMNHAM: @blue moutain oyster, cool can I try that?
- 13:33 Venice: MTS1 - regarding your suggestions this morning - looks like you solved my problem. Thank you again ;)
- 13:33 Blue_Oyster_Cult_SeriosBusines: JOSH they use to explan them on TOS .. it deals with time and volume if youwill
- google Mind over Markets & Markets in Profile
- 13:33 JoshN: ty
- 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
- 13:34 --swimLessons:
- http://tos.mx/Wdy6PE
- 13:34 lazybee: is there a way to split regular trading hours and extended as seperate monkey bars?
- 13:34 JohnnyQuotronKidderPeabodyAlum: A thinkscript question...is there a way to pull a symbol's sector or industry group if any in thinkscript?
- 13:34 Blue_Oyster_Cult_SeriosBusines: 14MTH do oyou know how to choose the time aggregates for the chart
- 13:35 harndog: When is next big release?
- 13:35 AlphaInvestor: Johnny - nope
- 13:35 14MTH30n3: In GUI or SCRIPT. Short answer yes
- 13:35 spokanesal: Were there any new things in last weekends update?
- 13:35 roy7694: I missed the beginning. How can I learn how to set up the charts?
- 13:35 Blue_Oyster_Cult_SeriosBusines: yeah we need more colors.......
- 13:36 AlphaInvestor: David - will we ever get historical data for the SeriesVolatility()
- 13:36 JoshN: how will the market generally respond to the levels you drew? and how long will it last? tomorrow...next week...?
- 13:36 JohnnyQuotronKidderPeabodyAlum: Alpha...bummer
- 13:36 lazybee: is it possible to paint each time frame using a different color?
- 13:36 harndog: David, another platform allows users to vote on preferences....Can we add a voting feature?
- 13:36 Blue_Oyster_Cult_SeriosBusines: ...
- 13:37 Blue_Oyster_Cult_SeriosBusines: chage to 
- 13:37 AlphaInvestor: Harndog - I vote for no voting system
- 13:37 james9268: Day trading specifically on the e's or would you specifically build lines for each position?
- 13:37 optioneeer: Can you tell the sell side vs the buy side volume on monkey charts?
- 13:38 JoshN: ty
- 13:38 harndog: lol
- 13:39 Blue_Oyster_Cult_SeriosBusines: http://tlc.thinkorswim.com/center/reference/Tech-Indicators/studies-library/M-N/MonkeyBars.html
- 13:39 spokanesal: time for show on Wed?
- 13:39 JoshN: very good, concise, and clear explination...thank you
- 13:40 JohnnyQuotronKidderPeabodyAlum: that was fun...
- 13:40 AlphaInvestor: Thanks David
- 13:40 JohnnyQuotronKidderPeabodyAlum: thank you david
- 13:40 harndog: Yes, thank you
- 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?
- 13:42 JohnnyQuotronKidderPeabodyAlum: Anyone have any ideas?
- 13:42 AlphaInvestor: Yes - but it would require you to have a huge IF statement including every symbol in your universe
- 13:43 JohnnyQuotronKidderPeabodyAlum: yea...thought of that too. That dog aint gonna hunt..
- 13:43 AlphaInvestor: nope
- 13:44 AlphaInvestor: You can add Industry and Sector to the Watchlist - then sort by it
- 13:44 gentlejohn: thank you
- 13:45 JohnnyQuotronKidderPeabodyAlum: its was those watch list fields that made me thik about calling the sector in a script
- 13:45 JohnnyQuotronKidderPeabodyAlum: I guess i could write the giant if and reference it in the active script
- 13:46 JohnnyQuotronKidderPeabodyAlum: thats so painful though
- 13:48 AlphaInvestor: you cannot Reference user scripts, only built-in ones
- 13:49 JohnnyQuotronKidderPeabodyAlum: good point...
- 14:06 JohnnyQuotronKidderPeabodyAlum: and let me guess , nesting a bunch of "or" isnt going to work either
- 14:06 JohnnyQuotronKidderPeabodyAlum: def sector_1 = if (getsymbol() == "SPY" or "eem") then 1 else 0;
- 14:10 AlphaInvestor: give up before you hurt yourself
- 14:13 DMonkey: memorize them...then no script is needed...
- 14:13 JohnnyQuotronKidderPeabodyAlum: so its really going to need to be one symbol per if else?
- 14:16 DMonkey: if getsymbol() == "A" or "B" or "C" then this else if "D" or "E" or "F" then that else the other;
- 14:18 DMonkey: if you dont already have a master list you are behind curve already...
- 14:18 AlphaInvestor: I have a couple thousand tickers memorized ... but I am a bit of a geek
- 14:19 JohnnyQuotronKidderPeabodyAlum: when i enter def sector_1 = if (getsymbol() == "SPY" or "eem") then 1 else 0; i get an error.
- 14:20 AlphaInvestor: if (getsymbol() == "SPY" or Getsymbol() == "eem")
- 14:21 AlphaInvestor: Johnny - remember - the many hours you spend coding this are hours that you can never get back
- 14:22 DMonkey: Im a bit slow myself alpha...only trade the crap out of a few things...easy to memorize....
- 14:23 JohnnyQuotronKidderPeabodyAlum: oh yuck... so i can concatenate the lines in excel easy pesy but getting them into thinkscript?
- 14:23 DMonkey: johnny....will this be a secnificant benefit to your trading?
- 14:23 JohnnyQuotronKidderPeabodyAlum: absolutely LOL
- 14:23 DMonkey: how so?
- 14:24 JohnnyQuotronKidderPeabodyAlum: kidding hence the LOL
- 14:24 AlphaInvestor: DMonkey "Im a bit slow myself" ha - yeah right
- 14:25 AlphaInvestor: what do you trade DMonkey?
- 14:26 amalia: Penny stocks!
- 14:26 amalia: lol Imagine that
- 14:27 DMonkey: mostly oil...
- 14:27 AlphaInvestor: DM - gotcha
- 14:27 JohnnyQuotronKidderPeabodyAlum: MLPs have turned up the last few days...
- 14:27 DMonkey: beans and wheat
- 14:28 amalia: So things that correlate seems like
- 14:28 MTS1: Interesting collection DM
- 14:28 DMonkey: gold / silver
- 14:28 AlphaInvestor: bananas?
- 14:29 DMonkey: cant get me hand out of the jar...
- 14:29 DMonkey: i refuse to let go of the bannanna...
- 14:51 amalia: Trading oil, do you also put a similar structured setup w ES since they have a 70%ish correlation?
- 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
- 15:28 JohnnyQuotronKidderPeabodyAlum: the logic
- 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.
- 15:42 TraderBuddy: Is this code correctly referencing daily bars for the StochRSI? Using this on a 5 minute chart. Thanks.
- 15:42 TraderBuddy: input RSI_lengthR = 14;
- input over_boughtR = 80;
- input over_soldR = 20;
- input RSI_average_typeR = AverageType.WILDERS;
- input RSI_priceR = FundamentalType.CLOSE;
- input StochRSIaggregationPeriodR = AggregationPeriod.DAY;
- input KPeriodR = 14;
- input DPeriodR = 3;
- input slowing_periodR = 1;
- input averageTypeR = AverageType.SIMPLE;
- def RSIR = RSI(price = Fundamental(RSI_priceR, period = StochRSIaggregationPeriodR), length = RSI_lengthR, averageType = RSI_average_typeR);
- plot FullK = StochasticFull(over_boughtR, over_soldR, KPeriodR, DPeriodR, RSIR, RSIR, RSIR, slowing_periodR, averageTypeR).FullK;
- plot FullD = StochasticFull(over_boughtR, over_soldR, KPeriodR, DPeriodR, RSIR, RSIR, RSIR, slowing_periodR, averageTypeR).FullD;
- plot OverBoughtR = over_boughtR;
- plot OverSoldR = over_soldR;
- FullK.SetDefaultColor(GetColor(5));
- FullD.SetDefaultColor(GetColor(0));
- OverBoughtR.SetDefaultColor(GetColor(1));
- OverSoldR.SetDefaultColor(GetColor(1));
- 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.
- 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???
- 17:11 JohnnyQuotronKidderPeabodyAlum: def sectorSpyLogic = logicXLY + logicXLP + logicXLE + logicXLF + logicXLV + logicXLI + logicXLB + logicXLRE + logicXLK + logicXLU;
- def bob = "TEST";
- def sectorSpySymbol1 = (if sectorSpyLogic == 1 then "XLY" else "SPY");
- AddLabel( yes, sectorSpyLogic + "now I need to impliment the logic" + bob);
- 17:11 JohnnyQuotronKidderPeabodyAlum: it doesnt work though and im not sure why yet
- 17:11 AlphaInvestor: If you just want a label for the sector ... that is easy peasy
- 17:12 JohnnyQuotronKidderPeabodyAlum: for you my friend
- 17:12 JohnnyQuotronKidderPeabodyAlum: im a newbie at this script stuff
- 17:13 AlphaInvestor: Add this to the bottom of your script:
- Addlabel(sector_XLY,"XLY-1",color.yellow);
- Addlabel(sector_XLP,"XLP-2",color.yellow);
- Addlabel(sector_XLE,"XLE-3",color.yellow);
- Addlabel(sector_XLF,"XLF-4",color.yellow);
- Addlabel(sector_XLV,"XLV-5",color.yellow);
- Addlabel(sector_XLI,"XLI-6",color.yellow);
- Addlabel(sector_XRE,"XRE-7",color.yellow);
- Addlabel(sector_XLB,"XLB-8",color.yellow);
- Addlabel(sector_XLK,"XLK-9",color.yellow);
- Addlabel(sector_XLU,"XLU-10",color.yellow);
- 17:13 JohnnyQuotronKidderPeabodyAlum: excel i rock. not so much with thinkscript. i am persistent though
- 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
- 17:13 AlphaInvestor: Only one of those labels will actually plot
- 17:14 AlphaInvestor: because 0 is false, and anything non-zero is true
- 17:14 JohnnyQuotronKidderPeabodyAlum: let me share the updated code. not really shooting for a label. drawing a comparison chartl line
- 17:14 JohnnyQuotronKidderPeabodyAlum: one moment for my updated code
- 17:15 AlphaInvestor: I said that adding a label was easy peasy ... YMMV on other uses
- 17:15 JohnnyQuotronKidderPeabodyAlum: http://tos.mx/yUabpY
- 17:15 AlphaInvestor: I already know it works ... i's tested it
- 17:16 JohnnyQuotronKidderPeabodyAlum: i's see your logic
- 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
- 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
- 17:17 AlphaInvestor: me and my brain are going to take the rest of the night off
- 17:17 AlphaInvestor: Later Traders
- 17:18 JohnnyQuotronKidderPeabodyAlum: im in big trouble then. i feel your pain though. i hope your portfolid performed better than mine today!
- 17:19 FrankB3: latter AI
- 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.
- 17:37 amalia: Pray, do tell us how that makes you a better trader
- 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)
- 17:38 LoneStranger: Not sure whom the last comment by Amalia was intended for. I just came into the chat room
- 17:38 Jake-Elwood: you can't change the text color of labels either
- 17:40 Jake-Elwood: you are looking at the manual, right? that would be the place to see what attributes are exposed for changing.
- 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"
- 17:44 Jake-Elwood: thinkScript has no clue about the background color of the chart
- 17:45 admin_bkTOS:
- 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.
- 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.
- 17:46 Jake-Elwood: should and does are a universe apart.
- 17:47 LoneStranger: or some variable that you can use similar to color.UPTICK -- we could use a color.BACKGROUND
- 17:47 amalia: Add it to the list of new features tos should add on their next update
- 17:47 Jake-Elwood: write ToS with your suggestions , we can't help you here
- 17:47 LoneStranger: That's what I'll have to do. Thanks.
- 17:48 amalia: yw
- 17:48 amalia: Goodnight room. Tomorrow is another day for another dollar
- 17:49 Jake-Elwood: u give up too soon. there's a whole 11 minutes left
- 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
- TOS platform questions? email: support@thinkorswim.com
- 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