Full index of posts »
StockTalks
-
Current top supercomputer powered by 3.12 million Intel $INTC cores: http://ars.to/17Unoop about 4 hours ago
-
$VOD clobbered this morning. Will be eyeing some puts. 6 days ago
-
Sold $DOV after reaching Graham 50% price target. Still holding in 401k. May 17, 2013
Latest Comments
-
Derek A. Barrett on Setting Up Bollinger Band Alerts In Thinkorswim No problem and glad you find it useful !
-
merlendale on Setting Up Bollinger Band Alerts In Thinkorswim Thanks Derek. This was very helpful. I have use...
-
Derek A. Barrett on Setting Up Bollinger Band Alerts In Thinkorswim Great job Don on your success ! Seems like you ...
-
northstatebiker@yahoo.com on Setting Up Bollinger Band Alerts In Thinkorswim I use alerts in conjunction with Fib trading, w...
-
Derek A. Barrett on Setting Up Bollinger Band Alerts In Thinkorswim Thanks for the comments Mrnomad, and great job ...
Most Commented
Posts by Themes
Instablogs are Seeking Alpha's free blogging platform customized for finance, with instant set up and exposure to millions of readers interested in the financial markets. Publish your own instablog in minutes.















View Derek A. Barrett's Instablogs on:
Setting Up Bollinger Band Alerts In Thinkorswim
Thinkorswim is a ridiculously powerful platform. Pretty much any technical indicator or study can be used to implement practically any strategy you can name. However, some investors may find themselves overwhelmed by so many options, and find it hard to figure out where to start.
Automation is the Key
One rule of thumb is to automate as much as possible in life. If you find yourself repeating the same task over and over again, chances are there is a way to automate. Let the computers and robots do the heavy lifting for you so you can utilize your most important asset - your brain - to do the qualitative critical thinking that the computers cannot do.
This further frees you from the computer, and with today's mobile power built into smartphones, lets you trade anywhere your phone will travel with you.
Bollinger Bands and Options Trading
In options trading our goal is often to earn the best premiums for selling our contracts. Typically the more volatility a stock is experiencing, the higher premium the stock option is offering.
Bollinger Bands are a great tool for measuring volatility, and often a lead indicator for initiating a trade.
As a put seller, I am extremely interested in the lower Bollinger Band. The idea is, when a stock is experiencing a pullback and on the bottom range of its volatility channel, this is an indicator that it may be time to sell a put. I also find the Bollinger Band indicator an extremely easy to read and implement indicator as it is a quick visual guide for sizing up a stock chart over time and possible entry points.
(click to enlarge)
Hindsight is 20/20: Johnson and Johnson (JNJ) kisses the lower Bollinger Band December 2012, which would have a been a great entry point for put sellers not wanting assignment.
More Information on Put Selling and Bollinger Band Trading Strategies
Teddi Knight has many fantastic articles on Put Selling, and Putting Selling strategies utilizing Bollinger Bands.
Setting Up Alert Preferences
NOTE: Click on the images to enlarge them if you need to see more detail or to make them more clear
You can setup alerts to both and email address and SMS text number, like your iPhone, Android, Windows Phone, or Blackberry.
I choose to receive emails.
To enable the alerts, you need to tell Thinkorswim that you want the alerts and where to send them.
1. To do that, Click the "Setup" button in the upper right hand corner. A menu will pop up, so then click on "Application Settings".
2. This will pop up a box and you will be able to select which options you want. When you choose the email and/or phone number to send alerts to, Thinkorswim will send a confirmation code to the email address and/or device. To enable alerts, you will need to confirm the code before proceeding.
3. Make sure to select the "Alert is triggered" box on the left to receive alerts, and then under the "Alert Settings" section on the right, check how you want alerts. I make sure to have "Send an e-mail checked so I get email alerts. Users that want SMS notifications to their smartphones will want to check either or both of the "Send SMS…" boxes.
(click to enlarge)
Setting Up Bollinger Band Alerts
1. To get to the Alerts Section, click on the "MarketWatch" Tab in the Thinkorswim interface, and then the "Alerts" button to get to the Alerts section.
(click to enlarge)
Close-up of this menu:
(click to enlarge)
2. Now enter the ticker of the stock you want alerts on, hit enter
(click to enlarge)
3. Then click on the "Study Alert" button on the far right
4. This will pop open a box where we can enter our alert. Click the "Add Condition" button on the lower left corner.
(click to enlarge)
Setting up the Upper Bollinger Band
We will start with the Upper Bollinger Band, since this alert is pretty straightforward with default settings.
1. After the "Add Condition" button is clicked, you will get another popup box, where you can choose what type of condition you want to alert on. Bollinger Bands is considered a "Study," so choose the "Study" option from the "Select a Condition" drop down box.
(click to enlarge)
2. Now another box will pop up, with the menu "Lookup a study." From here we want to pick the "BollingerBandsCorssover" study, so click on it.
(click to enlarge)
3. This will popup a few options. We are taking default options, so we do not need to change anything on the left column. However, in the middle column, we do want to choose the "is true" option since we want to be alerted when the upper Bollinger Band is breached.
Click the "Save" button to complete this box.
(click to enlarge)
4. Now our alert box is populated with our condition. The caveat here though, is that once this alert is triggered, it will expire. So, if you want to reuse the alert in the future without having to type it in again, we need to set it to continue even after the condition is met and triggered. So, click the "Set Alert Rules…" button in the lower left hand corner.
(click to enlarge)
5. This will pop up another box. Check the "Recreate alert for reverse crossover" box and then click OK to save this setting.
(click to enlarge)
6. Now click the "Create Alert" button in the lower right corner of the screen to save the alert.
(click to enlarge)
7. You now have an Alert! In the "Market Watch - Alerts" interface section of Thinkorswim, you will now notice an entry under alerts.
(click to enlarge)
Creating the Lower Bollinger Band Alert
The process of creating a lower Bollinger Band alert is very similar, though we do need to tweak a few settings.
1. Click on the "Study Alert" button.
2. We see our condition from the previous alert is still there. Click the "Edit" button on the right side of the screen.
(click to enlarge)
3. This will pop up a box that we recognize. However, in the left column, this time we want to change the "band" and "crossing type" to "lower" and "below," respectively. Then click the "Save" button to save the alert condition.
(click to enlarge)
4. Remember to click the "Set Alert Rules…" button on the lower left of the screen to set the alert to not expire.
(click to enlarge)
5. Again make sure that the "Recreate alert for reverse crossover" box is checked, then click "OK".
(click to enlarge)
6. Then click the "Create Alert" button to save the alert.
(click to enlarge)
7. Congrats, you now have both the Upper and Lower Bollinger Bands being tracked in Thinkorswim !
(click to enlarge)
Adding Additional Stocks to the Alert
This is the method I use, however, if anyone has a quicker way for creating alerts for say, 20 stocks at a time, please let me know. Ultimately I would like to just enter 20 tickers at once and then have the Alert created for them.
1. Go back to the ticker box in the "MarketWatch - Alerts" section on Thinkorswim. Enter the next ticker you want to use, (IBM) in this example, and hit enter.
(click to enlarge)
2. Then click the "Study Alert" button on the upper left corner of the interface.
3. Notice our last alert condition is still saved for the lower Bollinger Band. You just need to click the "Set Alert Rules…" button to make the alert permanent again.
(click to enlarge)
4. Confirm the "Recreate alert for reverse crossover" check box is checked and click the "OK" button.
(click to enlarge)
5. Then click the "Create Alert" button.
(click to enlarge)
6. Notice in the "ALERT BOOK" section in the "MarketWatch - Alerts" section, you now have your third alert.
(click to enlarge)
What I would do in the case of 10 stocks, is to keep entering my stock symbols for all 10 stocks and the Lower Bollinger Band, then go back and do all 10 for the Upper Bollinger Band. This minimizes the amount of clicking that you have to do and speeds up the process.
Again if anyone has a faster way for doing this please let me know. In the tech world we call what I'm looking for "batch input" where you can input everything at once instead of manually having to enter them one at a time.
Further Help
In the upper left hand corner of the Thinkorswim interface, there is a "Support/Chat" button. I have found this button extremely helpful for my alert questions. The support reps are always extremely helpful and have a great demeanor. My experience is that they know the application very well and can find a solution pretty quickly. They are also very honest with what the application can and cannot do.
There are other options platforms out there that may offer better prices, but the customer support I have gotten from TD Ameritrade/Thinkorswim has been great so far and is a major reason why I continue to trade with them.
Thinkscripter also has some pretty amazing Thinkscripts out there to extend the platform.
Best of luck to all you traders out there and I hope you find this of some benefit.
Disclosure: I have no positions in any stocks mentioned, and no plans to initiate any positions within the next 72 hours.
What To Do When The Market Crashes
George Acs posted this is his latest article.
Interesting that Paul Stephens was saying the big opportunity was in gold and commodities. Pretty fantastic call.
Saving this article here for future reference:
http://www.sfgate.com/news/article/Save-This-Column-and-Don-t-Use-It-Until-the-3034896.php#ixzz2U7engSNh
Automating Alpha: Optimize Large Data Sets With The SmfUpdateDownloadTable Macro
Introduction
The newer smfUpdateDownloadTable macro from Randy Harmelink offers several advantages over the traditional, cell-by-cell method, introduced in the previous article:
This means they will not change unless you run the macro again, and also there is no recalculation that takes place when you open the workbook. The values will be the same as they were when you saved the workbook, saving the wait time when the workbook is initially opened.
Getting Started
The easiest way to get started is to simply download the smfUpdateDownloadTable sample template, and then simply replace the sample values with the indicators you want to look up.
Assumptions
This article is assuming you already have installed the Stock Market Function Add-in, signed up for the Yahoo Group, and have access to the files area. See the previous article for more on the Yahoo Group or getting started the SMF Add-in.
Download Location
Once in the group, proceed to the following menu path to locate the file smfUpdateDownloadTable-Sample.xls:
Files > Templates and Examples > smfUpdateDownloadTable
(click to enlarge)
Multiple Methods for Retrieving Data
Now go ahead and open the file up, and let's take a look. The spreadsheet will retrieve data from the providers and supports all the SMF functions.
(click to enlarge)
In particular, notice in row 2, there are three ways for calling up the "Market Cap" value, but notice all 3 return the same value.
Constructing a Dividend Growth Workbook
Now, building on a sample Dividend Growth spreadsheet we used in the previous article, let's plug in our sample values.
1. Simply select the contents of columns D-J
(click to enlarge)
2. Then delete them
(click to enlarge)
3. Now fill in the tickers in column B, NextEra Energy (NEE), Coca-Cola (KO), Microsoft (MSFT), and Wells Fargo (WFC)
B4 --> NEE
B5 --> KO
B6 --> MSFT
B7 --> WFC
(click to enlarge)
4. Then fill in the column headings for row 3:
C3 --> DIVIDEND GROWTH RATE (5-Year Annualized)
D3 --> YIELD
E3 --> PAYOUT RATIO (<.50)
F3 --> DEBT/EQUITY (<1)
G3 --> Current P/E (Below 15)
H3 --> SECTOR
(click to enlarge)
5. Next, we are going to add in the formulas. We will use the RCHGetElementNumber for D2 and E2, so we can format these later into percentages. But for all other cells, we will use the native macro format for ease of use.
Enter the following formulas into row 2:
C2 --> RCHGetElementNumber("~~~~~",63)/100
D2 --> RCHGetElementNumber("~~~~~",13666)/100
E2 --> 47
F2 --> 42
G2 --> 54
H2 --> 878
(click to enlarge)
6. To populate the data, press Ctrl - Shift - J, and the spreadsheet will now go out and start pulling data. You should see a message at the bottom of Excel, showing the percentage completed, at the bottom of the spreadsheet while it is pulling data:
"25% Completed -- now processing KO -- #2 of 4"
Finishing Touches
7. Now select cells C4 - C7 and D4 - D7, and format these as Percentage.
(click to enlarge)
8. Select cells E4 - E7, F4-F7, and G4-G7, and then format these as General, to remove any formats from the sample template.
(click to enlarge)
Final Product
Now that we have completed our spreadsheet, it should look like the following screenshot:
(click to enlarge)
Limitations
1. Note that any internal strings are limited to 255 bytes, so in cases where you are having trouble pulling very long values, like using the RCHGetTableCell function, you may want to refer to this limit.
This limitation is not on the macro but comes from the Visual Basic script (VBA) "evaluate" function.
2. The add-in is designed so that it can only access data from 1000 web pages at any given time. The add-in is not an appropriate tool to load up a database, simply because one can. That is an unfair burden to place on the free data sources.
Screening tools should be used to get to a small subset of companies, where more detailed information would be useful.
Conclusion
The smfUpdateDownloadTable macro is a powerful tool for pulling big data sets, and is easy to get up and running quickly.
Again, big thanks to Randy Harmelink for his timeless dedication and efforts writing this fantastic free tool.
NOTE: Since it is a free tool, users often ask if it is possible to donate to the Stock Market Functions (SMF) add-in, and while the author certainly appreciates the suggestion, he would rather users "pay it forward" by using the money for their favorite charity instead.
Problems?
The SMF add-in is mature and stress-tested; however, if you are having trouble and need additional help, the best place to check is with the great troubleshooting documents already written, as many users have probably already encountered your issue and there will be a resolution already created for it.
You can find these help documents in the Links section of the Yahoo group:
(click to enlarge)
Disclosure: I am long NEE, KO, MSFT.