Stocks Could Be Stabilizing. How Do I Find Potential Opportunities?
David Russell
May 7, 2024
The stock market is bouncing after a dip. Are any companies stabilizing as sentiment recovers? Today’s article will consider a method for discovering potential opportunities.
It uses TradeStation’s EasyLanguage scripting tool to create a custom indicator, which can then be used by Scanner.
First, here’s what it will look for:
Stocks whose 50-day moving averages are above their 200-day moving averages.
This finds companies in longer-term uptrends
Stocks within 2 percent of their 100-day moving averages
This finds pullbacks
Stocks with average option volume of at least 10,000 contracts per day
This finds underliers with potentially higher liquidity for options strategies
Using EasyLanguage
TradeStation customers can create their own indicators using EasyLanguage. (Launch from the app menu at the top of the workspace.) Users can also download this file, which includes a fully built indicator called “Distance from MA.” It determines a stock’s distance from a moving average.
Perusing the code, we see the first two lines defining the inputs and the variables (“Vars”).
Inputs are values that users can change using the Customize dialogs on the platform.
Vars are variables used to hold data.
The next lines calculate the moving average. It uses conditional logic to know whether the user wants simple or exponential moving averages.
if MA_type = "Exponential" then
ma = XAverage(Close, MA_Len);
if MA_type = "Simple" then
ma = AverageFC(Close, MA_Len);
The next line calculates the distance between the last price and the moving average.
ma_dist = (Close / ma) - 1;
These lines convert the value to an absolute value if the user wants it. (Upperstr converts to uppercase.):
if Upperstr(Show_Absolute) = "Y" then
ma_dist = AbsValue(ma_dist);
It then outputs the resulting value with the plot command, using “MA Distance” as the display name:
plot1(ma_dist, "MA Distance");
Using Scanner
The Scanner tool is also available under the Apps menu. Users can “Click Create Scan” at the top left and enter a name. We’ll name this one “near 100-day MA” and click the “Next” button.
The following page asks which symbols to include in the scan. We’ll select “All Stocks” and proceed to the next page, which lets us input the key criteria.
We’ll first click on the highlighted box <Select Criteria> to open the menu.
Scroll down and select “Indicator…” and a dialog box will appear.
We’ll scroll down the list and select “Mov Avg 1 Line.”
We’ll click on the “Operator” box and select the “greater than sign,” or “>”.
The right box under “Field/Value” will highlight. Click to open the menu and scroll down to again select Indicator → Mov Avg 1 Line
This will now find stocks with one moving average above the other. But we need to tell it which moving averages, so we can click on the plus button and set the lengths to 50 and 200. This tells Scanner to find stocks whose 50-day moving averages are above their 200-day moving averages.
Scanning for Options
We’ll next add the “Distance from MA” indicator described above.
We can click on the + and set MA_Len to 100 and Show_Absolute to “Y”.
Set operator to “less than” or “<“.
Type 0.02 in the “Field/Value” cell on the right.
This will find stocks within 2 percent of their 100-day moving averages. Show_Absolute ensures values slightly above or slightly below 0 will be included.
Key options data can be added by adding another indicator and this time selecting “Volume – All Opts.”
Change VolAll to VolAllAvg
Change the Operator to greater than or “>”
Change the right field value to 10000
This will find symbols averaging at least 10,000 options contracts in the last 20 sessions. (This length can also be adjusted by clicking on the “+”.)
Running the Scan
Users can launch the scan by clicking on “Run.” Some results returned yesterday included Microsoft (MSFT), Booking.com (BKNG) and Oracle (ORCL). These stocks have trended higher over the long run but are more neutral in the shorter term. Options traders might not want to spend money on debit strategies, which require a short-term move to profit. However they could be candidates for income trades like selling put credit spreads. See this page for more.
In conclusion, the market is always changing. Sometimes options traders may want to spend money looking for a move, while other times they may consider neutral strategies to profit from time decays. This article illustrated finding one kind of technical that traders can combine with options. Hopefully it inspires you to use TradeStation’s award-winning platform* to customize indicators and scans to fit your preferences and style for years into the future.
Options trading is not suitable for all investors. Your TradeStation Securities’ account application to trade options will be considered and approved or disapproved based on all relevant factors, including your trading experience. See www.TradeStation.com/DisclosureOptions.
Margin trading involves risks, and it is important that you fully understand those risks before trading on margin. The Margin Disclosure Statement outlines many of those risks, including that you can lose more funds than you deposit in your margin account; your brokerage firm can force the sale of securities in your account; your brokerage firm can sell your securities without contacting you; and you are not entitled to an extension of time on a margin call. Review the Margin Disclosure Statement at www.TradeStation.com/DisclosureMargin.
David Russell is Global Head of Market Strategy at TradeStation. Drawing on nearly two decades of experience as a financial journalist and analyst, his background includes equities, emerging markets, fixed-income and derivatives. He previously worked at Bloomberg News, CNBC and E*TRADE Financial.
Russell systematically reviews countless global financial headlines and indicators in search of broad tradable trends that present opportunities repeatedly over time. Customers can expect him to keep them apprised of sector leadership, relative strength and the big stories – especially those overlooked by other commentators. He’s also a big fan of generating leverage with options to limit capital at risk.
TradeStation recently increased its window for extended-hours trading. This article will consider some of the tools that might help in the pre- and post-market. The first application is Chart Analysis, which typically shows only regular stock-market hours of 9:30 a.m....
Explore Your Next Idea with TradeStation's Trading Simulator https://www.youtube.com/watch?v=Z5QGPHAvanY&ab_channel=TradeStation TradeStation's trading simulator offers a powerful virtual arena for traders to test and refine strategies for stocks, options, and...
Synchrony Financial jumped on strong earnings last month, and options traders seem to think the move will continue. Call volume in the consumer-lending company spiked to a four-year high yesterday, according to TradeStation data. Two contracts were especially active...
Explore the Crossroads Summit
You are leaving TradeStation.com for CrossroadsSummit.com, an exciting new conference that highlights opportunity at the intersection of chaos and innovation. Click the button below to acknowledge that you understand that you are leaving TradeStation.com.
You are leaving TradeStation.com for another company’s website. Click the button below to acknowledge that you understand that you are leaving TradeStation.com.
This event is hosted on YouCanTrade. The information for this event is being provided for informational and educational purposes only.
You are leaving TradeStation Securities and going to YouCanTrade. YouCanTrade is an online media publication service which provides investment educational content, ideas and demonstrations, and does not provide investment or trading advice, research or recommendations. YouCanTrade is not a licensed financial services company or investment adviser and does not offer brokerage services of any kind.
TradeStation Securities, Inc. provides support and training channels hosted on YouCanTrade, its affiliate. Other than these support and training channels, any services offered by YouCanTrade are not sponsored, endorsed, sold or promoted by TradeStation Securities and it makes no representation regarding any YouCanTrade goods or services.
To acknowledge you are leaving TradeStation Securities to go to YouCanTrade, please click