The very same code is used for Studies Strategies and Scans. You can scan the entire listing of stocks or a subset of a market or industry as well as your own watch list from researching stocks.
Here is an example script.
Thinkscript custom scan. Navigate to the Condition Wizard tab For Custom Quotes. Input price close. The purpose of the scan among other criteria noted in the attachment is to scan all stocksETFs with weekly options and then return a list of those stocksETFs where the closest at-the-money option within a defined expiration period ie.
Selecting Scan Criteria When selecting your criteria for a Thinkscript scan you may find that too many results are found and more tuning is needed or additional elements are necessary to bring the resulting count down to a more reasonable number. Create scan queries. UsingReferencing in Custom Quotes and Scan Queries.
This code plots weekly Close price for IBM. Next 7 days has extrinsic value greater than X of the underlying stockETF value. Once youve mastered these techniques you will.
After you import any Scan go to Scan tab and click on top right menu icon to select the saved query. I am trying to find a way to generate a scan that would give me results of a recent change in this indicator. More complex studies like the Squeeze require custom Thinkscript to run a scan.
Stock scan for all stocks down 25 from example from the Highest over the last. Which the results can be saved as a watchlist and then seen in Marketwatch – Quotes Scripts for custom study filters. VariableMA Some scans scripts require helper files in addition to the indicator file for the scripts to run some do not.
This script plots daily Open price for the current symbol. In the Stock hacker click on Add Filter. Click on the Condition Wizard tab.
Trade with an edge with our custom indicators scanners for Thinkorswim TradeStation and make requests for custom coding in ThinkScript EasyLanguage. Percent below highestHigh Def TotalDays numMonths daysInMonth. Click on the Scan tab.
Plot weeklyClose close IBM period AggregationPeriodWEEK. This video demonstrates how to convert the plot lines from two different indicators and convert them into a truefalse statement the scan engine can understand. Here is the video where we demonstrate the conversion step-by-step in both directions.
TRADEdge Coding offers a variety of indicators including Supply Demand Zones Divergence indicators. For Scan Query Criteria. Then clicking on scan came up with a result list.
Input PctDown 25. Just a few little tweaks and you are ready to roll. Custom scan script is available for but may not be limited to the following indicators.
You can use thinkScript in Stock Hacker to find symbols that meet your criteria. Very complex studies like Ready Aim Fire require custom helper files for the Thinkscript to reference. Plot dailyOpen open period AggregationPeriodDAY.
Months Enter numMonths and PctDown input numMonths 6. So they are easily converted from one form to another. Follow the instructions in the How Do I InstallUpdate Custom Quote Scripts section up to the step just prior to clicking on the thinksScript Editor tab.
I thought it would be very helpful to the trading community to show you guys a Thin. Reverse operators for reverse condition custom study filter—–. Ive been asked many times how Im able to produce buy and sell signals.
Choose Study from the drop-down menu. Meaning it has switched from Buy to Sell or Sell to Buy. Months to be scanned input daysInMonth 21.
Def PriceTrue if close. In a perfect world I would then be able to setup alerts based on this change and in a dream world be able to setup an alert to when price is within X distance of the current ATR trailing stop buy or sell. Creating a custom filter from an indicator.
Then edit the filters and add any extra filters and select watchlist of symbols with liquid options top left Scan In. Thinkorswim Custom Scan Stochastic MACD. More info on thinkScript in Stock Hacker.
Download ThinkOrSwim Scans Scanners Stockhacker ThinkScripts.