[Screener]_[Detect_Day_Hi_Lo_Screener]_[with_Alerts]_ _
- A Screener that can scan a given list of symbols to detect Day High and Day Low as they occur.
- The Symbols can be selected from the settings
- Alerts can be configured to be informed as and when the Day High/Day Low is detected for any of the selected symbols
- This screener is best used along with my other indicator ---> " _ _ _ _ "
------------------
This screener can be configured with any condition to be alerted on.
------------------
Cari dalam skrip untuk "screener"
ScreenerMarketBottomThis study works as screener with alerts for ChrisMoody's scritp CM_Williams_Vix_Fix Finds Market Bottoms .
Refers to original study for the code: I converted it in a function and I used my snippets of pine script codes for convert it in a screener.
I'm thinking to transform it in a strategy: if someone has suggestion on startegy logic please let me know. For example enter long after three lime color bars?
Please use comment section for any feedback.
Next improvement (only to whom is interested to this script and follows me): study with alerts on multiple tickers all at one. Leave a comment if you want to have access to study.
Screener | FractalystWhat’s the purpose of this indicator?
This indicator is part of the Optirange suite , which analyzes all timeframes using a mechanical top-down approach to determine the overall market bias. It helps you identify the specific timeframes and exact levels for positioning in longs, shorts, or guiding you on whether to stay away from trading a particular market condition.
The purpose of the Screener indicator is to track the contextual bias of multiple markets simultaneously on the charts without the need to switch between pairs. This allows traders to monitor various assets in real-time, enhancing decision-making efficiency and identifying potential trading opportunities more effectively.
-----
How does this indicator identify the overall market bias?
This indicator employs a systematic top-down approach, analyzing market structure, fractal blocks, and their mitigations from the 12M timeframe down to the 1D timeframe to uncover the story behind the market. This method helps identify the overall market bias, whether it’s bullish, bearish, or in consolidating conditions.
Below is a flowchart that illustrates the calculation behind the market context identification, demonstrating the systematic approach:
-----
According to the above trade plan, why do we only look for mitigations within Fractal Blocks of X1/X2?
In this context, "X" stands for a break in the market's structure, and the numbers (1 and 2) indicate the sequence of these breaks within the same trend direction, either up or down.
We focus on mitigations within Fractal Blocks during the X1/X2 stages because these points mark the early phase (X1) and the continuation (X2) of a trend. By doing so, we align our trades with the market's main direction and avoid getting stopped out in the middle of trends.
-----
How does this indicator identify ranges in a mechanical way?
Since the indicator is part of the Optirange suite , it follows the exact rules that Optirange utilizes to identify breaks of market structures in a mechanical manner.
Let’s take a closer look at how the ranges are calculated:
1- First, we need to understand the importance of following a set of mechanical rules in identifying market structure:
The image above illustrates the difference between a subjective and a mechanical approach to analyzing market structure. The subjective method often leads to uncertainty, where traders might struggle to pinpoint exact breaks in structure, resulting in inconsistent decision-making. Questions like “Is this a break?” or “Maybe this one...?” reflect the ambiguity of manual interpretation, which can cause confusion and errors in trading.
On the other hand, the mechanical approach depicted on the right side of the image follows a clear, rule-based method to define breaks in market structure. This systematic approach eliminates guesswork by providing precise criteria for identifying structural changes, such as marking structural invalidation levels where market bias shifts from bullish to bearish or vice versa. The mechanical method not only offers consistency but also integrates statistical probabilities , enhancing the trader's ability to make data-driven decisions.
By adhering to these mechanical rules, the Screener indicator ensures that ranges are identified consistently, allowing traders to rely on objective analysis rather than subjective interpretation . This approach is crucial for accurately defining market structures and making informed trading decisions.
2- Now let's take a look at a practical example of how the indicator utilizes Pivot points with a period of 2 to identify ranges:
In this image, we see a Bearish Scenario on the left and a Bullish Scenario on the right. The indicator starts by identifying the first significant swing on the chart. It then validates this swing by checking if there is a preceding swing high (for a bearish scenario) or swing low (for a bullish scenario). Once validated, the indicator confirms a break of structure when price closes below or above these points, respectively.
For instance, in the Bearish Scenario:
The first significant swing is identified.
The script checks for a preceding swing high before confirming any structural break.
A candle closure below the swing low confirms the first bearish break of structure.
This results in a confirmed market bias towards bearishness, with structural liquidity levels indicated for potential price targets.
In the Bullish Scenario:
The process is mirrored, identifying the first swing low and validating it with a preceding swing low.
A closure above this swing confirms the bullish break of structure.
This leads to a market bias towards bullishness, with invalidation levels to watch if the trend shifts.
This practical example demonstrates how the indicator systematically identifies market ranges, ensuring that traders can make informed decisions based on clear, rule-based criteria.
-----
How does this indicator identify ranges in a mechanical way, What are the underlying calculations?
Fractal blocks refer to the most extreme swing candle within the latest break. They can serve as significant levels for price rejection and may guide movements toward the next break, often in confluence with topdown analysis for added confirmation.
-----
What are mitigations, What are the underlying calculations?
Mitigations refer to specific price action occurrences identified by the script:
1- When the price reaches the most recent fractal block and confirms a swing candle, the script automatically draws a line from the swing to the fractal block bar and labels it with a checkmark.
2- If the price wicks through the invalidation level and then retraces back to the fractal block while forming a swing candle, the script labels this as a double mitigation on the chart.
This level will serve as the next potential invalidation level if a break occurs in the same direction.
-----
What does the right table display?
The table located at the right of your chart displays five colored symbols that represent the contextual market bias:
Green: The market is in a bullish condition.
Red: The market is in a bearish condition.
White: The market condition is uncertain, and it is advisable to stay away from trading.
-----
What does the bottom table display?
The bottom table can be turned on in the Optirange indicator and serves multiple purposes:
Range Counts and Mitigations: It shows the range counts and their mitigations across multiple timeframes, providing a comprehensive view of market dynamics.
Hourly Timeframe Probabilities: The bottom row of the bias table displays the probabilities for various hourly timeframes, helping to identify potential entry levels based on the multi-timeframe bias determined by the Screener.
In a bullish market context, you should look for long positions by focusing on hourly timeframes where buy-side probability exceeds 50%.
In a bearish market context, you should look for short positions by focusing on hourly timeframes where the sell-side probability exceeds 50%.
When the symbol is white within the Screener table, it signals that the market bias is unclear, and it's recommended to stay away from trading in such conditions.
-----
How the range probabilities are calculated?
Each break of market structure, denoted as X, is assigned a unique ID, starting from X1 for the first break, X2 for the second, and so on.
The probabilities are calculated based on breaks holding, meaning price closing through the liquidity level, rather than invalidation. This probability is then divided by the total count of similar numeric breaks.
For example, if 75 out of 100 bullish X1s become X2, then the probability of X1 becoming X2 on your charts will be displayed as 75% in the following format: ⬆ 75%
-----
What does the top table display?
The top table on the charts displays the current market context, offering insights into the underlying bias. It highlights the high-timeframe (HTF) bias and guides you on which timeframes you should use to enter long or short positions, based on the probability of success.
Additionally, when the market bias is unclear, the table clearly signals that it's best to avoid trading that specific market until the context or market story becomes clearer. This helps traders make informed decisions and avoid uncertain market conditions.
-----
How does the Screener indicator identify the market bias/context/story ?
- Market Structure: The Optirange indicator analyzes market structure across multiple timeframes, from a top-down perspective, including 12M, 6M, 3M, 1M, 2W, 1W, 3D, and 1D.
- Fractal Blocks: Once the market structure or current range is identified, the indicator automatically identifies the last push before the break and draws it as a box. These zones acts as a key area where the price often rejects from.
- Mitigations: After identifying the Fractal Block, the indicator checks for price mitigation or rejection within this zone. If mitigation occurs, meaning the price has reacted or rejected from the Fractal Block, the indicator draws a checkmark from the deepest candle within the Fractal Block to the initial candle that has created the zone.
- Bias Table: After identifying the three key elements—market structure, Fractal Blocks, and price mitigations—the indicator compiles this information into a multi-timeframe table. This table provides a comprehensive top-down perspective, showing what is happening from a structural standpoint across all timeframes. The Bias Table presents raw data, including identified Fractal Blocks and mitigations, to help traders understand the overall market trend. This data is crucial for the screener, which uses it to determine the current market bias based on a top-down analysis.
- Screener: Once all higher timeframes (HTF) and lower timeframes (LTF) are calculated using the indicator, it follows the exact rules outlined in the flowchart to determine the market bias. This systematic approach not only helps identify the current market trend but also suggests the exact timeframes to use for finding entry, particularly on hourly timeframes.
Example:
12M Timeframe:
OANDA:EURUSD
6M Timeframe :
OANDA:EURUSD
3M Timeframe :
OANDA:EURUSD
1M Timeframe :
OANDA:EURUSD
2W Timeframe :
OANDA:EURUSD
1W Timeframe :
OANDA:EURUSD
-----
User-input settings and customizations
Terms and Conditions | Disclaimer
Our charting tools are provided for informational and educational purposes only and should not be construed as financial, investment, or trading advice. They are not intended to forecast market movements or offer specific recommendations. Users should understand that past performance does not guarantee future results and should not base financial decisions solely on historical data. By utilizing our charting tools, the buyer acknowledges that neither the seller nor the creator assumes responsibility for decisions made using the information provided. The buyer assumes full responsibility and liability for any actions taken and their consequences, including potential financial losses. Therefore, by purchasing these charting tools, the customer acknowledges that neither the seller nor the creator is liable for any unfavorable outcomes resulting from the development, sale, or use of the products.
The buyer is responsible for canceling their subscription if they no longer wish to continue at the full retail price. Our policy does not include reimbursement, refunds, or chargebacks once the Terms and Conditions are accepted before purchase.
By continuing to use our charting tools, the user acknowledges and accepts the Terms and Conditions outlined in this legal disclaimer.
Screener for 40+ instrumentsAs you probably know in TradingView there is a limit of 40 instruments in one custom screener.
I created a script that will allow you to scan more symbols.
The idea of it is pretty simple. You have to add a screener a few times on your screen with a different set of symbols. Then select column width (as % of your chart width) and # of the screener right to left.
Script will plot #1 screener next to the right border. For #2 and all next tables, the script will compute the needed offset and will draw it on the left. This way it will look like one table and not a few separate indicators.
I created a script with an RSI screener, but you can create more complicated examples with it.
Off course, that's not a silver bullet solution but might work for some of you.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
Screener: Alpha & BetaThis is a Live Screener for my previous Alpha & Beta indicator, which filters stocks lively based on the given values.
Use 5min timeframe for Live Intraday.
The default stocks in the screener is selected based on high beta value from F&O listed stocks. It may include other stocks also.
User can input stocks of your choice either through the menu or through the Pine editor.
The maximum number of stocks inputs is only 40. The indicator includes only 20 stocks by default.
More number of stocks can be added but it makes the screener slower to load.
Open the indicator in a sperate tab or window to avoided the loading lag.
It is recommended to choose only 10 to 20 stocks based on the weightage from each sectors.
Beta values are dynamic. It changes from day to day based on the trend and sector.
Update the sock list weekly or twice a week or monthly.
Use investing.com screener(preferably) or TradingView screener for shortlisting beta stocks.
Remember that majority of indicators fails in a sideways market, also every indicator is not 100% accurate.
MOST + Moving Average ScreenerScreener version of Anıl Özekşi's Moving Stop Loss (MOST) Indicator:
USERS MAY SCREEN MOST WITH 11 DIFFERENT TYPES OF MOVING AVERAGES + THEY CAN ALSO SCREEN SIGNALS WITH THAT 11 MOVING AVERAGES INSTEAD OF USING MOST LINE.
Adjustable Moving Average Types:
SMA : Simple Moving Average
EMA : Exponential Moving Average
WMA : Weighted Moving Average
DEMA : Double Exponential Moving Average
TMA : Triangular Moving Average
VAR : Variable Index Dynamic Moving Average aka VIDYA
WWMA : Welles Wilder's Moving Average
ZLEMA : Zero Lag Exponential Moving Average
TSF : True Strength Force
HULL : Hull Moving Average
TILL : Tillson T3 Moving Average
About Screener Panel:
Users can explore 20 different and user-defined tickers, which can be changed from the SETTINGS (shares, crypto, commodities...) on this screener version.
The screener panel shows up right after the bars on the right side of the chart.
-In this screener version of MOST, users can define the number of demanded tickers (symbols) from 1 to 20 by checking the relevant boxes on the settings tab.
-All selected tickers can be screened in different timeframes.
-Also, different timeframes of the same Ticker can be screened.
IMPORTANT NOTICE:
Screener shows the results in 3 different logic:
1st LOGIC (Default Settings):
BUY AND SELL SIGNALS of MOST and MOVING AVERAGE LINE
Most Buy Signal: Moving Average Crosses ABOVE the MOST LINE
Most Sel Signal: Moving Average Crosses BELOW the MOST LINE
Tickers seen in green are the ones that are in an uptrend, according to MOST.
The ones that appear in red are those in the SELL signal, in a downtrend.
The numbers before each Ticker indicate how many bars passed after MOST's last BUY or SELL signal.
For example, according to the indicator, when BTCUSDT appears (3) in GREEN, Bitcoin switched to a BUY signal 3 bars ago.
2nd LOGIC (Moving Average & Price Flips Screener Mode):
This mode can only be activated by checking the 'Activate Moving Average Screening Mode' box on the settings menu.
MOST line will be disappeared after checking the box.
Buy Signal: When the Selected Price crosses ABOVE the selected Moving Average.
Sell Signal: When the Selected Price crosses BELOW the selected Moving Average.
Tickers seen in green are the ones that are in an uptrend, according to Moving Average & Price Flips.
The ones that appear in red are those in the SELL signal, in a downtrend.
The numbers before each Ticker indicate how many bars passed after the last BUY or SELL signal of Moving Average & Price Flips.
For example, according to the indicator, when BTCUSDT appears (3) in GREEN, Bitcoin switched to a BUY signal 3 bars ago.
3rd LOGIC (Moving Average Color Change Screener Mode):
Both 'Activate Moving Average Screening Mode' and 'Activate Moving Average Color Change Screening Mode' boxes must be checked in the settings tab.
Moving Average Line will turn out into two colors.
Green color means the moving average value is greater than the previous bar's value.
Red color means the moving average value is smaller than the previous bar's value.
Buy Signal: After the Selected Moving Average turns GREEN from red.
Sell Signal: After the Selected Moving Average turns RED from green.
-Screener shows the information about the color changes of the selected Moving Average with default settings.
If this option is preferred, users are advised to enlarge the length to have better signals.
Tickers seen in green are the ones that are in an uptrend, according to Moving Average Color.
The ones that appear in red are those in the SELL signal, in a downtrend.
The numbers before each Ticker indicate how many bars passed after the last BUY or SELL signal of Moving Average Color Change.
For example, according to the indicator, when BTCUSDT appears (3) in GREEN, Bitcoin switched to a BUY signal 3 bars ago.
Screener - Mean Reversion Channel█ OVERVIEW
This is Screener script for Mean Reversion Channel Indicator
█ Description & How To Use
The screener works by scanning through up to 40 symbols and list down symbols that are currently within Overbought/Oversold Zone as defined by Mean Reversion Channel indicator.
The Overbought/Oversold Zone are further categorized and sorted by:
Strong : Indicated by "(Strong)" next to the symbol name
Normal : Indicated by the absence of "(Strong)" or "(Weak)" next to the symbol name
Weak : Indicated by "(Weak)" next to the symbol name
Notes: Refer to chart above to see how the Zone are categorized.
Notes: If the screener displays "Nothing Interesting". It simply means none of the screened assets are within the Overbought/Oversold Zone.
█ Features
- Scan up to 40 symbols at a time (By default, no asset is define. Once configured all the symbols you required, remember to save as default to save you from pain of configuring it again in the future)
- Options to scan by zones
- Custom Timeframe
█ Limitation
Due to multiple use of security() function required to call other symbols, expect the screener to be slow at certain times
█ Disclaimer
Past performance is not an indicator of future results.
My opinions and research are my own and do not constitute financial advice in any way whatsoever.
Nothing published by me constitutes an investment recommendation, nor should any data or Content published by me be relied upon for any investment/trading activities.
I strongly recommends that you perform your own independent research and/or speak with a qualified investment professional before making any financial decisions.
Any ideas to further improve this indicator are welcome :)
Credit: QuantNomad for his script idea on custom screener
Screener Price Percentage ChangeA screener that displays price percentage change in actual chart timeframe and the default Daily, Weekly and Monthly.
The actual time frame also displays last value percentage change.
For example, if actual timeframe is "Monthly, it is going to display also the last "previous Monthly percentage price change.
Can select 3 more assets to display.
Full control of Panel position and size.
A modified version of @Mohamed3nan
Para el Shiaks
Screener Red?Based on the teachings of Rob Smith
Ability to change the timeframe and the symbols this indicator is scanning through in the input tab under settings of this indicator. Maximum symbols 40. All of the symbols need to entered. If any symbol field is left empty, the script might not work properly.
This is a simple screener which checks if the current candle is red/going down.
I add it 4 times and change the timeframes on each one to tell me if any of the symbols scanning through have FTFC(Full time frame continuity). If a symbol appears in all of the timeframes selected, it would have continuity in all of those timeframes. Meaning going down in all of those selected timeframes.
I like to add a textbox on top of the labels manually when I change the timeframe to tell me which timeframe the indicator is scanning through.
Always double check in the settings of the indicator that the correct timeframe is selected.
First label is for all of the symbols the indicator is scanning.
Second label is the result of the scan. Text is bigger in this label than the first label to differentiate from the first label and for ease of use.
Please DM me on how to access this indicator.
Screener Green?Based on the teachings of Rob Smith
Ability to change the timeframe and the symbols this indicator is scanning through in the input tab under settings of this indicator. Maximum symbols 40. All of the symbols need to entered. If any symbol field is left empty, the script might not work properly.
This is a simple screener which checks if the current candle is green/going up.
I add it 4 times and change the timeframes on each one to tell me if any of the symbols scanning through have FTFC(Full time frame continuity). If a symbol appears in all of the timeframes selected, it would have continuity in all those timeframe. Meaning going up in all of those timeframes.
I like to add a textbox manually on top of the labels when I change the timeframe to tell me which timeframe the indicator is scanning through.
Always double check in the settings of the indicator that the correct timeframe is selected.
First label is for all of the symbols the indicator is scanning.
Second label is the result of the scan. Text is bigger in this label than the first label to differentiate from the first label and for ease of use.
Please DM me on how to access this indicator.
Psych Level ScreenerThis Script is intended for Pine Screener and is not designed as a indicator!!!
Pine Screener is something TradingView has recently added and is still only a Beta version.
Pine Screener itself is currently only available to members that are Premium and above.
What it does:
This screener will actively look for tickers that are close to Pysch level in your watchlist.
Psych level here refers to price levels that are round numbers such as 50,100,1000.
Users can specify the offset from a psych level (in %) and scanner will scan for tickers that are within the offset. For example if offset is set at 5% then it will scan for tickers that are within +/-5% of a ticker. (for $100 psych level it will scan for ticker in $95-105 range)
Once scan is completed you will be able to see:
- Current price of ticker
- Closest psych level for that ticker
- % and $ move required for it to hit that psych level
- Ticker's day range and Average range (with % of average range completed for the day)
- Ticker volume and average volume
Setting up:
www.tradingview.com
Above link will help you guide how to setup Pine screener.
Use steps below to guide you the setup for this specific screener:
1. Open Pine Screener (open new tab, select screener the "Pine")
2. At the top, click on "Choose Indicator" and select "Psych Level Screener"
3. At the top again, click "Indicator Psych Level Screener" and select settings.
4. Change setting to your needs. Hit Apply when done.
a)"% offset from Psych Level" will scan for any stocks in your watchlist which are +/- from the offset you chose for any given psych level. Default is 5. (e.g. If offset is 5%, it will scan for stocks that are between $95-$105 vs $100 psych level, $190-$210 for $200 psych level and so on)
b) ATR length is number of previous trading days you want to include in your calculation. Moving Average Type is calculation method.
c) Rvol length is number of previous trading days you want to include in your calculation.
5. On top left, click "Price within specified offset of Psych. Level" and select true. Then select "Scan" which is located at the top next to "Indicator Psych Level Screener". This will filter out all the stock that meets the condition.
6. At the end of the column on the right there is a "+" symbol. From there you can add/remove columns. 30min/1hr/4hr/1D Trend are disabled by default so if this is needed please enable them.
7. You can change the order of ticker by ascending and descending order of each column label if needed. Just click on the arrow that comes up when you move the cursor to any of the column items.
8. You can specify advanced filter settings based on the variables in the column. (e.g., set price range of stock to filter out further) To do so, click on the column variable name in interest, located above the screener table (or right below "scan") and select "manual setup".
How to read the column:
Current Price: Shows current price of the ticker when scan was done. Currently Pine Screener does NOT support pre/post-hours data so no PM and AH price.
Psych Level: Psych level the current price is near to.
% to Psych Level: Price movement in % necessary to get to the Psych level.
$ to Psych Level: Price movement in $ necessary to get to the Psych level.
DTR: Daily True Range of the stock. i.e. High - Low of the ticker on the day.
ATR: Average True Range of stock in the last x days, where x is a value selected in the setting. (See step 3 in Previous section)
DTR vs ATR: Amount of DTR a ticker has done in % with respect to ATR. (e.g., 90% means DTR is 90% of ATR)
Vol.: Volume of a ticker for the day. Currently Pine Screener does NOT support pre/post-hours data so no PM and AH volume.
Avg. Vol: Average volume of a ticker in the last x days, where x is a value selected in the setting. (See step 3 in Previous section)
Rvol: Relative volume in percentage, measured by the ratio of day's volume and average volume.
30min/1hr/4hr/1D Trend: Trend status to see if the chart is Bullish or Bearish on each of the time frame. Bullishness or Bearishness is defined by the price being over or under the 34/50 cloud on each of the time frame. Output of 1 is Bullish, -1 is Bearish. 0 means price is sitting inside the 34/50 cloud. Currently Pine Screener does NOT support pre/post-hours data so 34/50 cloud is based on regular trading hours data ONLY.
Some things user should be aware of:
- Pine Screener itself is currently only available to TradingView members with Premium Subscription and above. (I can't to anything about this as this is NOT set by me, I have no control) For more info: www.tradingview.com
- The Pine Screener itself is a Beta version and this screener can stop working anytime depending on changes made by TradingView themselves. (Again I cannot control this)
- Pine Screener can only run on Watchlists for now. (as of 03/31/2025) You will have to prepare your own watchlists. In a Watchlist no more than 1000 tickers may be added. (This is TradingView rules)
- Psych level included are currently 50 to 1500 in steps of 50. If you need a specific number please let me know. Will add accordingly.
- Unfortunately this screener does not update automatically, so please hit "scan" to get latest screener result.
- I cannot add 10min trend to the column as Pine Screener does NOT support 10min timeframe as of now. (03/31/2025)
- This code is only meant for Pine Screener. I do NOT recommend using this as an indicator.
- Currently Pine Screener does NOT support pre/post-hours data. So data such as Price, Volume and EMA values are based on market hours data ONLY! (If I'm wrong about this please correct me / let me know and will make look into and make changes to the code)
Other useful links about Pine Screener:
Quick overview of the Screener’s functionality: www.tradingview.com
what do you need to know before you start working? : www.tradingview.com
These links will go over the setting up with GIFs so is easier to understand.
-----------------------------------------------------------------------------------------------------------------
If there are other column variables that you think is worth adding please let me know! Will try add it to the screener!
If you have any questions let me know as well, will reply soon as I can!
Have a good trading day and hope it helps!
Your CRYPTO Screener - MACD 0 LAG editionHello traders
What's good?
1 - Quick introduction
This script is to demonstrate a proof-of-concept - showing you again what you thought wasn't possible might become (with some tricks) in the realm of possibles !!!.
I get requests for people who want a custom screener because the native TradingView Stocks/Forex/Crypto screeners don't allow to plug external indicators. (example: www.tradingview.com
This is entirely true and I have also good news for you, we can hack the system one more time. As Hackerman would say, "IT"S HACKING TIME !!!" (ref : KUNG FURY . (#geek #reference #done #for #today)
What if you could build your own personalized screener based on your custom indicator? "No Dave stop smoking, that's not possible, go back to eating your baguette". Say no more, let me present you my new script called YOUR CRYPTO Screener (MACD 0 LAG)
2 - What is a MACD ZERO LAG?
We'll all agree this indicator is NOT in the TradingView screeners so I'm not cheating here :)
A MACD ZERO LAG is a MACD that .... suspens.... wait for it.... DOES NOT lag.
The traditional MACD is based on exponential moving averages and as moving averages are lagging, then the MACD is lagging also. I'll spare you all the maths behind the MACD ZERO LAG but in short, this is a way more reactive indicator than the traditional MACD
I shared before the version that I personally use for my own trading : MACD 0 LAG nTREND coloring
3 - Crypto Screener specifications
If I could do a screener as complete as the native one, this would be wonderful but ... we cannot and this is due to technical reasons. To call indicators from different timeframes, I have to use the security function. And we're limited to 40 security calls per indicator.
That explains why I selected 4 crypto assets and 5 timeframes and the MACD zero lag output for each asset/timeframe - which gives a total of 4 * 5 * 2 = 40
You'll be able to select from the interface the 5 timeframes that you want for your screener
In this script, you'll get a :
- BUY whenever the MACD ZERO LAG for your asset/timeframe is green.
- SELL whenever the MACD ZERO LAG for your asset/timeframe is red.
4 - Can you hack it even more?
If you want to add other timeframes or assets, you can either, change the code or add the indicator on another chart.
I made the source code generic enough so that you can update it yourself easily
Example:
Chart 1 will list BTCUSD, ETHUSD, LTCUSD, and XRPUSD in m5/m15/m30/H1/H4 and Chart2 could list BTCUSD, ETHUSD, LTCUSD and XRPUSD in H6/H8/H12/Daily, etc...
Once again the sky (and your computer RAM capacity) is the limit
5 - Can you super hack it even more?
1/ This script is only a proof-of-concept that you can build your own custom screener. Imagine having the Algorithm Builder and being able to connect it in a single click to a custom screener using your own configuration :)
How coooooooooooooooool would that be!!!
This screener version will be available on my website in a few weeks along with all the tools I'm spamming you about since the beginning of July (#shameless #self-advertising)
2/ For a nicer scripter, let's keep in mind that TradingView just enabled Webhooks this week. This will allow my company to offer custom screeners design and hosted on your own website. Those screeners will be for sure nicer than the indicator version
That's it for today and for this week
I won't even touch the laptop this weekend and will enjoy life a bit
Love you all
Dave
____________________________________________________________
Be sure to hit the thumbs up. Building those indicators take a lot of time and likes are always rewarding for me :) (tips are accepted too)
- If you want to suggest some indicators that I can develop and share with the community, please use my personal TRELLO board
- I'm an officially approved PineEditor/LUA/MT4 approved mentor on codementor. You can request a coaching with me if you want and I'll teach you how to build kick-ass indicators and strategies
Jump on a 1 to 1 coaching with me
- You can also hire for a custom dev of your indicator/strategy/bot/chrome extension/python
Options Screener [Pro] - IVRank, IVx, Deltas, Exp.move, Skew
𝗢𝗽𝘁𝗶𝗼𝗻 𝘀𝗰𝗿𝗲𝗲𝗻𝗲𝗿 𝗼𝗻 𝗧𝗿𝗮𝗱𝗶𝗻𝗴𝗩𝗶𝗲𝘄 𝘄𝗶𝘁𝗵 𝗿𝗲𝗮𝗹 𝗱𝗮𝘁𝗮, 𝗮𝘃𝗮𝗶𝗹𝗮𝗯𝗹𝗲 𝗳𝗼𝗿 𝗼𝘃𝗲𝗿 𝟭𝟱𝟬+ 𝗹𝗶𝗾𝘂𝗶𝗱 𝗨𝗦 𝗺𝗮𝗿𝗸𝗲𝘁 𝘀𝘆𝗺𝗯𝗼𝗹𝘀!
𝗢𝘂𝗿 𝘀𝗰𝗿𝗲𝗲𝗻𝗲𝗿 𝗽𝗿𝗼𝘃𝗶𝗱𝗲𝘀 𝗲𝘀𝘀𝗲𝗻𝘁𝗶𝗮𝗹 𝗸𝗲𝘆 𝗺𝗲𝘁𝗿𝗶𝗰𝘀 𝘀𝘂𝗰𝗵 𝗮𝘀:
✅ IVRank
✅ IVx
✅ 5-Day IVx Change
✅ Vertical Pricing Skew
✅ Horizontal IVx Skew
✅ Delta Skew
like TastyTrade, TOS, IBKR etc.
Designed to help you assess option market conditions and make well-informed trading decisions, this tool is an essential addition for every serious options trader!
Ticker Information:
This screener is currently implemented for more than 150 liquid US market tickers and we are continuously expanding the list:
SP:SPX AMEX:SPY NASDAQ:QQQ NASDAQ:TLT AMEX:GLD
NYSE:AA NASDAQ:AAL NASDAQ:AAPL NYSE:ABBV NASDAQ:ABNB NASDAQ:AMD NASDAQ:AMZN AMEX:ARKK NASDAQ:AVGO NYSE:AXP NYSE:BA NYSE:BABA NYSE:BAC NASDAQ:BIDU AMEX:BITO NYSE:BMY NYSE:BP NASDAQ:BYND NYSE:C NYSE:CAT NYSE:CCJ NYSE:CCL NASDAQ:COIN NYSE:COP NASDAQ:COST NYSE:CRM NASDAQ:CRWD NASDAQ:CSCO NYSE:CVNA NYSE:CVS NYSE:CVX NYSE:DAL NASDAQ:DBX AMEX:DIA NYSE:DIS NASDAQ:DKNG NASDAQ:EBAY NASDAQ:ETSY NASDAQ:EXPE NYSE:F NYSE:FCX NYSE:FDX AMEX:FXI AMEX:GDX AMEX:GDXJ NYSE:GE NYSE:GM NYSE:GME NYSE:GOLD NASDAQ:GOOG NASDAQ:GOOGL NYSE:GPS NYSE:GS NASDAQ:HOOD NYSE:IBM NASDAQ:IEF NASDAQ:INTC AMEX:IWM NASDAQ:JD NYSE:JNJ NYSE:JPM NYSE:JWN NYSE:KO NYSE:LLY NYSE:LOW NYSE:LVS NYSE:MA NASDAQ:MARA NYSE:MCD NYSE:MET NASDAQ:META NYSE:MGM NYSE:MMM NYSE:MPC NYSE:MRK NASDAQ:MRNA NYSE:MRO NASDAQ:MRVL NYSE:MS NASDAQ:MSFT AMEX:MSOS NYSE:NCLH NASDAQ:NDX NYSE:NET NASDAQ:NFLX NYSE:NIO NYSE:NKE NASDAQ:NVDA NASDAQ:ON NYSE:ORCL NYSE:OXY NASDAQ:PEP NYSE:PFE NYSE:PINS NYSE:PLTR NASDAQ:PTON NASDAQ:PYPL NASDAQ:QCOM NYSE:RBLX NYSE:RCL NASDAQ:RIOT NASDAQ:RIVN NASDAQ:ROKU NASDAQ:SBUX NYSE:SHOP AMEX:SLV NASDAQ:SMCI NASDAQ:SMH NYSE:SNAP NYSE:SQ NYSE:T NYSE:TGT NASDAQ:TQQQ NASDAQ:TSLA NYSE:TSM NASDAQ:TTD NASDAQ:TXN NYSE:U NASDAQ:UAL NYSE:UBER AMEX:UNG NYSE:UPS NASDAQ:UPST AMEX:USO NYSE:V AMEX:VXX NYSE:VZ NASDAQ:WBA NYSE:WFC NYSE:WMT NASDAQ:WYNN NYSE:X AMEX:XHB AMEX:XLE AMEX:XLF AMEX:XLI AMEX:XLK AMEX:XLP AMEX:XLU AMEX:XLV AMEX:XLY NYSE:XOM NYSE:XPEV CBOE:XSP NASDAQ:ZM
How does the screener work and why is it unique?
This Pine Script screener is an expert tool created to provide various option metrics and visualization tools for options market traders. The screener extracts raw options data from an external data provider (ORATS), processes, and refines the delayed data package using pineseed, and sends it to TradingView. The data is calculated using specific formulas or interpolated values, such as delta distances. This method of integrating options data into a screener framework is unique and innovative on TradingView.
The screener aims to offer a comprehensive view of the current state of options for the implemented instruments, including implied volatility index (IVx), IV rank (IVR), options skew, and expected market movements, which are objectively measured as detailed below.
The options metrics displayed may be familiar to options traders from various major brokerage platforms such as TastyTrade, IBKR, TOS, Tradier, TD Ameritrade, Schwab, etc.
🟨 𝗗𝗘𝗧𝗔𝗜𝗟𝗘𝗗 𝗗𝗢𝗖𝗨𝗠𝗘𝗡𝗧𝗔𝗧𝗜𝗢𝗡 🟨
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔶 Auto-Updating Option Metrics
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔹 IVR (IV Rank)
The Implied Volatility Rank (IVR) indicator helps options traders assess the current level of implied volatility (IV) in comparison to the past 52 weeks. IVR is a useful metric to determine whether options are relatively cheap or expensive. This can guide traders on whether to buy or sell options. We calculate IVrank, like TastyTrade does.
IVR Calculation: IV Rank = (current IV - 52 week IV low) / (52 week IV high - 52 week IV low)
IVR Levels and Interpretations:
IVR 0-10 (Green): Very low implied volatility rank. Options might be "cheap," potentially a good time to buy options.
IVR 10-35 (White): Normal implied volatility rank. Options pricing is relatively standard.
IVR 35-50 (Orange): Almost high implied volatility rank.
IVR 50-75 (Red): Definitely high implied volatility rank. Options might be "expensive," potentially a good time to sell options for higher premiums.
IVR above 75 (Highlighted Red): Ultra high implied volatility rank. Indicates very high levels, suggesting a favorable time for selling options.
Extra: If the IVx value is also greater than 30, the background will be dark highlighted, because a high IVR alone doesn’t mean much without high IVx.
🔹IVx (Implied Volatility Index)
The Implied Volatility Index (IVx) displayed in the option chain is calculated similarly to the VIX. The Cboe employs standard and weekly SPX options to measure the expected volatility of the S&P 500. A similar method is utilized to calculate IVx for each option expiration cycle.
For our purposes, we aggregate the IVx values specifically for the 35-70 day monthly expiration cycle . This aggregated value is then presented in the screener and info panel, providing a clear and concise measure of implied volatility over this period.
We will display a warning if the option chain is heavily skewed and valid, symmetric 16 delta options are not found at optimal monthly expirations.
IVx Color coding:
IVx above 30 is displayed in orange.
IVx above 60 is displayed in red
Important Note: The IVx value alone does not provide sufficient context. There are stocks that inherently exhibit high IVx values. Therefore, it is crucial to consider IVx in conjunction with the Implied Volatility Rank (IVR), which measures the IVx relative to its own historical values. This combined view helps in accurately assessing the significance of the IVx in relation to the specific stock's typical volatility behavior.
This indicator offers traders a comprehensive view of implied volatility, assisting them in making informed decisions by highlighting both the absolute and relative volatility measures.
🔹IVx 5 days change %
We are displaying the five-day change of the IV Index (IVx value). The IV Index 5-Day Change column provides quick insight into recent expansions or decreases in implied volatility over the last five trading days.
Traders who expect the value of options to decrease might view a decrease in IVX as a positive signal. Strategies such as Strangle and Ratio Spread can benefit from this decrease.
On the other hand, traders anticipating further increases in IVX will focus on the rising IVX values. Strategies like Calendar Spread or Diagonal Spread can take advantage of increasing implied volatility.
This indicator helps traders quickly assess changes in implied volatility, enabling them to make informed decisions based on their trading strategies and market expectations.
🔹 Vertical Pricing Skew
At TanukiTrade, Vertical Pricing Skew refers to the difference in pricing between put and call options with the same expiration date at the same distance (at expected move). We analyze this skew to understand market sentiment. This is the same formula used by TastyTrade for calculations.
PUT Skew (red): Put options are more expensive than call options, indicating the market expects a downward move (▽). If put options are more expensive by more than 20% at the same expected move distance, we color it lighter red.
CALL Skew (green): Call options are more expensive than put options, indicating the market expects an upward move (△). If call options are priced more than 30% higher at the examined expiration, we color it lighter green.
We focus on options with 35-70 days to expiration (DTE) for optimal analysis. We always evaluate the skew at the expected move using linear interpolation to determine the theoretical pricing of options. If the pricing have more than C50%/P35% we are highlighting the cell.
This approach helps us gauge market expectations accurately, providing insights into potential price movements.
🔹 Horizontal IVx Skew
In options pricing, it is typically expected that the implied volatility (IVx) increases for options with later expiration dates. This means that options further out in time are generally more expensive. At TanukiTrade, we refer to the phenomenon where this expectation is reversed—when the IVx decreases between two consecutive expirations—as Horizontal Skew or IVx Skew.
Horizontal IVx Skew occurs when: Front Month IVx < Back Month IVx
This scenario can create opportunities for traders who prefer diagonal or calendar strategies. Based on our experience, we categorize Horizontal Skew into two types:
Weekly Horizontal Skew: When IVx skew is observed between two consecutive non-monthly expirations , the displayed value is the rounded-up percentage difference. On hover, the approximate location of this skew is also displayed. The precise location can be seen on the Overlay indicator.
Monthly Horizontal Skew: When IVx skew is observed between two consecutive monthly expirations , the displayed value is the rounded-up percentage difference. On hover, the approximate location of this skew is also displayed. The precise location can be seen on the Overlay indicator.
The Monthly Vertical IVx skew is consistently stronger (more liquid) on average symbols than the weekly vertical IVx skew. Weekly Horizontal IVx Skew may not carry relevant information for symbols not included in the 'Weeklies & Volume Masters' preset.
If the options chain follows the normal IVx pattern, no skew value is displayed.
Additionally , if the Implied Volatility Rank (IVR) is low (indicated by green), the Horizontal Skew background turns black, because this environment is good for Calendar+Diagonal.
Additionally , if the % of the skew is greater than 10, the Horizontal Skew font color turns lighter.
🔹 Delta Skew 🌪️ (Twist)
We have a metric that examines which monthly expiration indicates a "Delta Skew Twist" where the 16 delta deviates from the monthly STD. This is important because, under normal circumstances, the 16 delta is positioned between the expected move and the standard deviation (STD1) line. However, if the interpolated 16 delta line exceeds the STD1 line either upwards or downwards, it represents a special case of vertical skew.
Normal case : exp.move < delta16 < std1
Delta Skew Twist: exp.move < std1 < delta16
If the Days to Expiration of the twist is less than 75, we use a lighter color.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔶 HOW WE CALCULATE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔹 Expected Move
The expected move is the predicted dollar change in the underlying stock's price by a given option's expiration date, with 68% certainty. It is calculated using the expiration's pricing and implied volatility levels.
Expected Move Calculation
Expected Move = (ATM straddle price x 0.6) + (1st OTM strangle price x 0.3) + (2nd OTM strangle price x 0.1)
For example , if stock XYZ is trading at 121 and the ATM straddle is 4.40, the 120/122 strangle is 3.46, and the 119/123 strangle is 2.66, the expected move is calculated as follows: 4.40 x 0.60 = 2.64; 3.46 x 0.30 = 1.04; 2.66 x 0.10 = 0.27; Expected move = 2.64 + 1.04 + 0.27 = ±3.9
🔹 Standard deviation
One standard deviation of a stock encompasses approximately 68.2% of outcomes in a distribution of occurrences based on current implied volatility.
We use the expected move formula to calculate the one standard deviation range of a stock. This calculation is based on the days-to-expiration (DTE) of our option contract, the stock price, and the implied volatility of a stock:
Calculation:
Standard Deviation = Closing Price * Implied Volatility * sqrt(Days to Expiration / 365)
According to options literature, there is a 68% probability that the underlying asset will fall within this one standard deviation range at expiration.
∑ Quant Observation: The values of the expected move and the 1st standard deviation (1STD) will not match because they use different calculation methods, even though both are referred to as representing 68% of the underlying asset's movement in options literature. The expected move is based on direct market pricing of ATM options. The 1STD, on the other hand, uses the averaged implied volatility (IVX) for the given expiration to determine its value. Based on our experience, it is better to consider the area between the expected move and the 1STD as the true representation of the original 68% rule.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔶 USAGE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔹 Create a new empty layout for the screener!
You can access this from the dropdown menu in the upper right corner. In the popup window, name it as you like, for example, "Option Screener."
🔹 Hide the candlestick chart
Make the chart invisible using the "Hide" option from the three-dot dropdown menu located in the upper left corner.
🔹 Other Unwanted Elements
If other unnecessary elements are distracting you (e.g., economic data, volume, default grid), you can easily remove them from the layout. Right-click on the empty chart area. Here, click on the gear (Settings) icon and remove everything from the "Events" tab, as well as from the "Trading" tab. Under the "Canvas" tab, it is recommended to set the "Grid lines" setting to "None."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔶 Screener Settings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Naturally, the font size and position can be easily adjusted.
Additionally, there are two basic usage modes: manual input or using the preset list.
🔹If you selected “Manual Below” in the preset dropdown, the tickers you chose from the dropdown (up to a maximum of 40) will be displayed. The panel name will be the one you specified.
🔹If you selected a pre-assembled list , the manually entered list will be ignored, and the preset list will be displayed. (In the future, we will expand the preset list based on your feedback!).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔶 Best Practices for TanukiTrade Option Screener:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔹 Every Preset on a New Layout:
If you following the steps above, you easy can setup this screener in one window with one split layout:
🔹 Split Layout:
- Left Side: The underlying asset with our Options IV Overlay (IVR, Deltas, Expected Move, STD1, Skew visualized) along with the Enhanced Murrey Math Indicator and Option Expiry.
- Right Side: Searching for opportunities using our Options Screener.
Opportunities Search
🔹 Everything in One Layout + One Window:
This is the all-in-one view:
- The underlying asset with our Options IV Overlay (IVR, Deltas, Expected Move, STD1, Skew visualized)
- Enhanced Murrey Math Indicator and Option Expiry
- Options Screener on the left
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔶 ADDITIONAL IMPORTANT COMMENTS
- U.S. market only:
Since we only deal with liquid option chains: this option indicator only works for the USA options market and do not include future contracts; we have implemented each selected symbol individually.
- Why is there a slight difference between the displayed data and my live brokerage data? There are two reasons for this, and one is beyond our control.
- Brokerage Calculation Differences:
Every brokerage has slight differences in how they calculate metrics like IV and IVx. If you open three windows for TOS, TastyTrade, and IBKR side by side, you will notice that the values are minimally different. We had to choose a standard, so we use the formulas and mathematical models described by TastyTrade when analyzing the options chain and drawing conclusions.
- Option-data update frequency:
According to TradingView's regulations and guidelines, we can update external data a maximum of 5 times per day. We strive to use these updates in the most optimal way:
(1st update) 15 minutes after U.S. market open
(2nd, 3rd, 4th updates) 1.5–3 hours during U.S. market open hours
(5th update) 10 minutes before market close.
You don’t need to refresh your window, our last refreshed data-pack is always automatically applied to your indicator , and you can see the time elapsed since the last update at the bottom of your indicator.
- Weekly illiquid expiries:
The Weekly Horizontal IVx Skew may not carry relevant information for instruments not included in the 'Weeklies & Volume Masters' preset package.
-Timeframe Issues:
Our option indicator visualizes relevant data on a daily resolution. If you see strange or incorrect data (e.g., when the options data was last updated), always switch to a daily (1D) timeframe. If you still see strange data, please contact us.
Disclaimer:
Our option indicator uses approximately 15min-3 hour delayed option market snapshot data to calculate the main option metrics. Exact realtime option contract prices are never displayed; only derived metrics and interpolated delta are shown to ensure accurate and consistent visualization. Due to the above, this indicator can only be used for decision support; exclusive decisions cannot be made based on this indicator . We reserve the right to make errors.This indicator is designed for options traders who understand what they are doing. It assumes that they are familiar with options and can make well-informed, independent decisions. We work with public data and are not a data provider; therefore, we do not bear any financial or other liability.
BEST Ultimate Engulfing ScreenerHello traders
Continuing deeper and stronger with the screeners serie. I keep getting requests private messages and requests saying that screeners aren't possible with TradingView.
My answer is always... "Reallyyy ??" (I never find a better answer than that...)
I'll publish a few screeners just for everyone to understand what can be done with Pinescript. We don't have to wait for TradingView to allow screener based on custom indicator - we can build our own ^^
I - What is an engulfing pattern
Let's start with a screener to check for a very famous candlestick pattern called engulfing
Engulfing candles tend to signal a reversal of the current trend in the market. This specific pattern involves two candles with the latter candle ‘engulfing’ the entire body of the candle before it.
The engulfing candle can be bullish or bearish depending on where it forms in relation to the existing trend
Source and more info here
These engulfing candles indicate a strong shift in direction, and when combined with observation of the price-trending direction that precedes it, this shift creates the opportunity for a trading strategy.
II - How did I set the screener
I added an optional filter being Price vs SMA. The idea is to select only the engulfing whenever the price also breaks an SMA - this usually translates a stronger move - but could sometimes give the signal too late (#meh #trading #ain't #easy)
The visual signals are as follow:
- square: whenever the engine detects an engulfing and an SMA breakout
- triangle: the engine only detects an engulfing
- dash: none of the above
Then the colors are:
- orange when bullish
- yellow when bearish
- aqua/dash when none of the above
Cool Hacks
"But sir... what can we do with only 5 instruments for a screener?" I agree not much but...
even if I allow only 5 instruments per indicator - nothing prevents you from adding multiple times the same indicator and changing the selected instruments for each. I also show why the SPX500 gave a yellow triangle (bearish engulfing) and how to match it with the screener.
=> imgur.com
Wishing you all the BEST trading
Dave
Linear Regression Channel Screener [Daveatt]Hello traders
First and foremost, I want to extend a huge thank you to @LonesomeTheBlue for his exceptional Linear Regression Channel indicator that served as the foundation for this screener.
Original work can be found here:
Overview
This project demonstrates how to transform any open-source indicator into a powerful multi-asset screener.
The principles shown here can be applied to virtually any indicator you find interesting.
How to Transform an Indicator into a Screener
Step 1: Identify the Core Logic
First, identify the main calculations of the indicator.
In our case, it's the Linear Regression
Channel calculation:
get_channel(src, len) =>
mid = math.sum(src, len) / len
slope = ta.linreg(src, len, 0) - ta.linreg(src, len, 1)
intercept = mid - slope * math.floor(len / 2) + (1 - len % 2) / 2 * slope
endy = intercept + slope * (len - 1)
dev = 0.0
for x = 0 to len - 1 by 1
dev := dev + math.pow(src - (slope * (len - x) + intercept), 2)
dev
dev := math.sqrt(dev / len)
Step 2: Use request.security()
Pass the function to request.security() to analyze multiple assets:
= request.security(sym, timeframe.period, get_channel(src, len))
Step 3: Scale to Multiple Assets
PineScript allows up to 40 request.security() calls, letting you monitor up to 40 assets simultaneously.
Features of This Screener
The screener provides real-time trend detection for each monitored asset, giving you instant insights into market movements.
It displays each asset's position relative to its middle regression line, helping you understand price momentum.
The data is presented in a clean, organized table with color-coded trends for easy interpretation.
At its core, the screener performs trend detection based on regression slope calculations, clearly indicating whether an asset is in a bullish or bearish trend.
Each asset's price is tracked relative to its middle regression line, providing additional context about trend strength.
The color-coded visual feedback makes it easy to spot changes at a glance.
Built-in alerts notify you instantly when any asset experiences a trend change, ensuring you never miss important market moves.
Customization Tips
You can easily expand the screener by adding more symbols to the symbols array, adapting it to your watchlist.
The regression parameters can be adjusted to match your preferred trading timeframes and sensitivity.
The alert system is already configured to notify you of trend changes, but you can customize the alert messages and conditions to your needs.
Limitations
While powerful, the screener is bound by PineScript's limitation of 40 security calls, capping the maximum number of monitored assets.
Using AI to Help With Conversion
An interesting tip:
You can use AI tools to help convert single-asset indicators to screeners.
Simply provide the original code and ask for assistance in transforming it into a screener format. While the AI output might need some syntax adjustments, it can handle much of the heavy lifting in the conversion process.
Prompt (example) : " Please make a pinescript version 5 screener out of this indicator below or in attachment to scan 20 instruments "
I prefer Claude AI (Opus model) over ChatGPT for pinescript.
Conclusion
This screener transformation technique opens up endless possibilities for market analysis.
By following these steps, you can convert any indicator into a powerful multi-asset scanner, enhancing your trading toolkit significantly.
Remember: The power of a screener lies not just in monitoring multiple assets, but in applying consistent analysis across your entire watchlist in real-time.
Feel free to fork and modify this screener for your own needs.
Happy trading! 🚀📈
Daveatt
Multiple Screeners with AlertsI already published few version of my custom screeners. Unfortunately, because of TradingView's security function call limit you can't use more than 40 stocks in 1 screener.
Fortunately, you can compute multiple values in your function and screen few indicators at once.
In this script I show how you can compute 5 indicators at the same time for 40 instruments. I display then in different labels.
Every label consist of list of instruments satisfying current indicator conditions and a value for it. It can be absolute value as for RSI or -1/1 representing Bullish/Bearish event.
Also you can create 1 alert with result of all screeners inside.
In this example I took 5 indicators with following conditions:
RSI - "RSI < 30" or "RSI > 70"
TSI - "TSI < -30" or "RSI >30"
ADX - "ADX > 40"
MACD - "MACD Bullish Cross" or "MACD Bearish Cross" (1 and -1 in screener)
AO - "AO Crosses 0 UP" or "AO Crosses 0 DOWN" (1 and -1 in screener)
Params
- bars_apart - this parameter define how may bars apart you labels are on your chart. If you see labels overlapping, increase this number.
- Parameters for all used indicators
- 40 symbol inputs for instruments you want to use in this screener
Alerts
You can create an alert from it easily by selecting screener name from the list and then selecting "Any alert() function call".
No additional configuration is required, message and alert on close is generated in the code.
You should better change default name for your alert. Sometimes because of big amount of inputs you might receive an error.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as good as in historical backtesting.
This post and the script don’t provide any financial advice.
LuxAlgo® - Screener (OSC)The LuxAlgo® - Screener (OSC) is a complete tool allowing users to check returned information from the Oscillator Matrix™ toolkit's features for various user selected tickers and timeframes.
Users can customize the returned information by the screener, as well as filtering out displayed tickers based on custom user set rules.
🔶 FEATURES
Users can place the location of the screener everywhere they want, multiple locations are supported, you can even have it on your chart by drag and dropping the screener to your chart, allowing you to analyze them alongside your favorite indicators.
Keeping track of various tickers is crucial to have a deeper understanding of the overall market activity.
Our screener let you quickly access your preferred information in a convenient way thanks to the described features below:
Screening of the main Oscillator Matrix™ features on up to 10 user selected tickers and timeframes.
Ticker filtering based on custom user set rules.
Ticker sorting based on ascending/descending user selected data returned by the screener.
The LuxAlgo® - Screener (OSC) returns the following information:
Current price
Current volume
Current price percent change (% CHG)
Current price change (CHG)
Current rating
Most recent HyperWave signal
Current Money Flow value
Current Overflow value
Current HyperWave value
Most recent reversal signal
Most recent divergence
Current Confluence status
🔹 Rating
Users can quickly check the overall sentiment based on the screeners returned information by looking at the Rating column. Tickers can be rated as follows:
▲ Strong Bullish (more than 80% of the returned information is bullish)
△ Bullish (60% to 80% of the returned information is bullish)
― Neutral (40% to 60% of the returned information is bullish)
▽ Bearish (20% to 60% of the returned information is bullish)
▼ Strong Bearish (less than 20% of the returned information is bullish)
This can be a quick way to asses the confluence between all the returned information on the screener for a specific ticker.
🔹 Filtering
Thanks to the integrated filtering capabilities of the LuxAlgo® - Screener (OSC) you will be able to keep track of the information from tickers that return specific information you want to see.
For example do you want to only see the information from tickers with bullish money flow?
Nothing easier, all you need is to select the "Above" option in the Money Flow dropdown menu and set the value 50 in the input to the right.
However, you don't have to stop at 1 filtering condition, create more complex ones that fits your trading style for the tickers you truly want to look at!
🔹 Sorting
As traders we want to quickly spot the tickers with most volume, most volatility, with the strongest uptrend or downtrend.
The LuxAlgo® - Screener (OSC) lets you do that by sorting supported information in an ascending or descending order, letting you access the most relevant information faster.
LuxAlgo® - Screener (PAC)The LuxAlgo® - Screener (PAC) is a complete tool allowing users to check returned information from the Price Action Concepts™ toolkit's features for various user selected tickers and timeframes.
Users can customize the returned information by the screener, as well as filtering out displayed tickers based on custom user set rules.
🔶 FEATURES
Users can place the location of the screener everywhere they want, multiple locations are supported, you can even have it on your chart by drag and dropping the screener to your chart, allowing you to analyze them alongside your favorite indicators.
Keeping track of various tickers is crucial to have a deeper understanding of the overall market activity.
Our screener let you quickly access your preferred information in a convenient way thanks to the described features below:
Screening of the main Price Action Concepts™ features on up to 10 user selected tickers and timeframes.
Ticker filtering based on custom user set rules.
Ticker sorting based on ascending/descending user selected data returned by the screener.
The LuxAlgo® - Screener (PAC) returns the following information:
Current price
Current volume
Current price percent change (% CHG)
Current price change (CHG)
Current rating
Most recent market structure
Most recent Order Block type and relative position to price
Order Block buy volume
Order Block sell volume
Order Block total volume
Most recent user set imbalance type status. Options include screening for FVG, Inverse FVG, Double FVG, Volume Imbalance and Opening Gap
Price position relative to Premium/Discount zones
Most recent liquidity grab
Most recent equal high/low
🔹 Rating
Users can quickly check the overall sentiment based on the screeners returned information by looking at the Rating column. Tickers can be rated as follows:
▲ Strong Bullish (more than 80% of the returned information is bullish)
△ Bullish (60% to 80% of the returned information is bullish)
― Neutral (40% to 60% of the returned information is bullish)
▽ Bearish (20% to 60% of the returned information is bullish)
▼ Strong Bearish (less than 20% of the returned information is bullish)
This can be a quick way to asses the confluence between all the returned information on the screener for a specific ticker.
🔹 Filtering
Thanks to the integrated filtering capabilities of the LuxAlgo® - Screener (PAC) you will be able to keep track of the information from tickers that return specific information you want to see.
For example do you want to only see the information from up trending tickers? Nothing easier, all you need is to select the up trending related options (▲ Strong Bullish or △ Bullish) in the rating dropdown menu.
However, you don't have to stop at 1 filtering condition, create more complex ones that fits your trading style for the tickers you truly want to look at!
🔹 Sorting
As traders we want to quickly spot the tickers with most volume, most volatility, with the strongest uptrend or downtrend.
The LuxAlgo® - Screener (PAC) lets you do that by sorting supported information in an ascending or descending order, letting you access the most relevant information faster.
LuxAlgo® - Screener (S&O)The LuxAlgo® - Screener (S&O) is a complete tool allowing users to check returned information from Signals & Overlays™ features for various user selected tickers and timeframes.
Users can customize the returned information by the screener, as well as filtering out displayed tickers based on custom user set rules.
🔶 FEATURES
Users can place the location of the screener everywhere they want, multiple locations are supported, you can even have it on your chart by drag and dropping the screener to your chart, allowing you to analyze them alongside your favorite indicators.
Keeping track of various tickers is crucial to have a deeper understanding of the overall market activity.
Our screener let you quickly access your preferred information in a convenient way thanks to the described features below:
Screening of the main Signals & Overlays™ features on up to 10 user selected tickers and timeframes.
Ticker filtering based on custom user set rules.
Ticker sorting based on ascending/descending user selected data returned by the screener.
The LuxAlgo® - Screener (S&O) returns the following information:
Current price
Current volume
Current price percent change (% CHG)
Current price change (CHG)
Current rating
Most recent signal
Number of Exits since most recent signals
Current Smart Trail status
Current Reversal Zones status
Current Trend Catcher status
Current Trend Tracer status
Current Neo Cloud status
Current Trend Strength value
Current Lux Volatility value
Current Squeeze Index value
Current Volume Sentiment value
🔹 Rating
Users can quickly check the overall sentiment based on the screeners returned information by looking at the Rating column. Tickers can be rated as follows:
▲ Strong Bullish (more than 80% of the returned information is bullish)
△ Bullish (60% to 80% of the returned information is bullish)
― Neutral (40% to 60% of the returned information is bullish)
▽ Bearish (20% to 60% of the returned information is bullish)
▼ Strong Bearish (less than 20% of the returned information is bullish)
This can be a quick way to asses the confluence between all the returned information on the screener for a specific ticker.
🔹 Filtering
Thanks to the integrated filtering capabilities of the LuxAlgo® - Screener (S&O) you will be able to keep track of the information from tickers that return specific information you want to see.
For example do you want to only see the information from up trending tickers? Nothing easier, all you need is to select the up trending related options (▲ Strong Bullish or △ Bullish) in the rating dropdown menu.
However you don't have to stop at 1 filtering condition, create more complex ones that fits your trading style for the tickers you truly want to look at!
🔹 Sorting
As traders we want to quickly spot the tickers with most volume, most volatility, with the strongest uptrend or downtrend.
The LuxAlgo® - Screener (S&O) lets you do that by sorting supported information in an ascending or descending order, letting you access the most relevant information faster.
Custom Screener with Alerts V2 [QuantNomad]TradingView just recently announced the alert() function that allows you to create dynamic alerts from both strategies and studies.
So I decided to update custom screener I published before. It was based on alerts from orders in strategies, that was the only way to create dynamic alerts in PineScript at that point.
With the alert() function code become cleaner and more readable.
It works for up to 40 symbols at the same time.
You can create an alert from it easily by selecting screener name from the list and then selecting "Any alert() function call".
No additional configuration is required, message and alert on close I set up in the code.
I created as an example a screener that tracks both overbought (RSI > 70) and oversold stocks (RSI < 30).
To create your own screener you have to change only screenerFunc().
By design it should output 2 values:
cond - True/False Boolean variable. Should this instrument be displayed in the screener?
value - Additional numeric value you can display in your screener. I display RSI level for selected stocks for example.
Link to the old screener:
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as good as in historical backtesting.
This post and the script don’t provide any financial advice.
Contraction & Expansion Multi-Screener █ Overview:
The Contraction & Expansion Multi-Screener analyzes market volatility across many symbols. It provides insights into whether a market is contracting or expanding in volatility. With using a range of statistical models for modeling realized volatility, the script calculates, ranks, and monitors the degree of contraction or expansions in market volatility. The objective is to provide actionable insights into the current market phases by using historical data to model current volatility conditions.
This indicator accomplishes this by aggregating a variety of volatility measures, computing ranks, and applying threshold-based methods to identify transitions in market behavior. Volatility itself helps you understand if the market is moving a lot. High volatility or volatility that is increasing over time, means that the price is moving a lot. Volatility also mean reverts so if its extremely low, you can eventually expect it to return to its expected value, meaning there will be bigger price moves, and vice versa.
█ Features of the Indicator
This indicator allows the user to select up to 14 different symbols and retrieve their price data. There is five different types of volatility models that you can choose from in the settings of this indicator for how to use the screener.
Volatility Settings:
Standard Deviation
Relative Standard Deviation
Mean Absolute Deviation
Exponentially Weighted Moving Average (EWMA)
Average True Range (ATR)
Standard Deviation, Mean Absolute Deviation, and EWMA use returns to model the volatility, meanwhile Relative Standard Deviation uses price instead due to its geometric properties, and Average True Range for capturing the absolute movement in price. In this indicator the volatility is ranked, so if the volatility is at 0 or near 0 then it is contracting and the volatility is low. If the volatility is near 100 or at 100 then the volatility is at its maximum.
For traders that use the Forex Master Pattern Indicator 2 and want to use this indicator for that indicator, it is recommended to set your volatility type to Relative Standard Deviation.
Users can also modify the location of the screener to be on the top left, top right, bottom left, or bottom right. You also can disable sections of the screener and show a smaller list if you want to.
The Contraction & Expansion Screener shows you the following information:
Confirmation of whether or not there is a contraction or expansion
Percentage Rank of the volatility
Volatility MA direction: This screener uses moving averages on the volatility to determine if its increasing over time or decreasing over time.
TanHef Ranks ScreenerTanHef Ranks Screener: A Numeric Compass to Market Tops and Bottoms
█ Simple Explanation:
The TanHef Ranks Screener illustrates the ‘TanHef Ranks’ indicator, designed to signal 'buy low and sell high' opportunities through numerical rankings. Larger numbers represent stronger signals, with negative numbers indicating potential ‘buy’ opportunities and positive numbers suggesting possible ‘sell’ moments.
█ TanHef Ranks Indicator:
View the TanHef Ranks Indicator description prior to using the screener.
█ Ticker Input Method:
Add tickers to the screener using a text area list in a CSV-styled (comma-separated values) list and/or through individual ticker inputs. The text area supports various delimiters, including commas, spaces, semicolons, apostrophes, and new lines. To ensure the expected exchange is used, the exchange prefix should be included when using a text area list.
█ Pair Configuration:
Quickly set up specific trading pairs by comparing tickers to the chart’s symbol or a specified input. This feature is useful for identifying opportunities in obscure trading pairs.
█ Total Combined Average Rank:
Compute the average rank of all tickers to highlighting overall market opportunities. When combined with the 'Pair Configuration' settings, it allows for identifying specific opportunities where one ticker may present a better trading opportunity relative to others.
█ Screener Display Settings:
Customize color-coded rank thresholds, text details, toggle visibility of numerical rankings, and other display settings. Hover over tickers for tooltips with full ticker names and rankings, ideal for small fonts or screens.
█ Alerts:
Set up alerts for individual ticker ranks or total average ranks. To avoid inconsistent or excessive alerts within a short period of time due to TradingView's alert frequency limits, it is recommended to use alerts set to occur at bar close to guarantee alerts. For immediate alerts, consider configuring them directly within the ‘TanHef Ranks’ indicator for better reliability. For the most up-to-date suggestions, hover the tooltips within the indicator’s alert settings.
█ Additional Clarity:
All the settings and functionality are described in detail within the tooltips beside each setting in the indicator’s settings. Hover over each tooltip for comprehensive explanations and guidance on how to configure and use the screener effectively.
█ How To Access:
Follow the Author's Instructions below to get access.
Ultimate Screener TemplateHello Traders
With the Ultimate Strategy Template , I shared a template to connect any indicator to this template and get backtesting results in less than a few minutes
Now sharing another template ... many traders ask me to develop for them a screener/scanner based on a custom indicator on TradingView.
The current TradingView screeners are great but don't allow for much customization; as we can only select pre-defined filters
I don't know when we'll be able to natively screen among hundreds of assets with a custom indicator... then.... I created this template for the time being.... which should
A whole new world
The Ultimate Screener Template screens over 38 securities.
What's very cool is that you'll only need to create 1 alert to scan over 38 securities: Explanation with this image here
I totally understand that not all TradingView accounts have a lot of alarms; with this template, you can multiply the number of custom alerts you're initially allowed to.
What if I need to set alerts on more than 38 securities?
Pretty straightforward... you can create alerts only if the indicator is added to your chart first.
So if you need let's say 100 securities, add this indicator 3 times on your chart (38*3 > 100) and then... edit the securities for your 3 indicators
How to update your Screener settings
Alert mode
As per Pinescript reference , this template allows setting the alert frequency
Possible values are:
- alert.freq_all (all function calls trigger the alert)
- alert.freq_once_per_bar (the first function call during the bar triggers the alert)
- alert.freq_once_per_bar_close (the function call triggers the alert only when it occurs during the last script iteration of the real-time bar when it closes).
All-time-high and All-time-low
This template shows how to capture ATH and ATL alerts across many securities
I used the functions from Quantnomad:
Whenever a new ATH or ATL is made, the screener will send a personalized alarm with a personalized text based on the security triggering this alarm
The code is pretty straightforward and shows you the part you'll need to update to transform your favorite custom indicator into a powerful screener.
If anything is unclear in the code, please leave a comment and I'll respond as soon as possible
All the best
Dave