trend Screener downtrendthis is in continuation with  - previous trend screener i have published, In this code only downtrend screener is there ,This is type of custom screener I searched and made to screen bulk stocks any one can modify it, other may get help out of it.
you can change or add new symbol in input section.
in my code i have made defined and printed last close price when downtrend was true.
1. downtrend = ema (close,55)< ema (close,144) and ema (close,144)< ema (close,388) and ema (close,388)<ema(close,576) and close<ema(close,388)
if the indicator is printing DOWNTREND=TRUE or UPTREND=TRUE then the corresponding stock is in currently in that trend out of the stocks listed in the code
in one code only 40 (max) stocks can be called.
to add more stocks I copied same code and changed the stocks in the code, now you can screen 80 stocks at a time.
This code runs on each bar and checks if the stocks is in uptrend or down trend.
you can customize this screener according to your requirement.
Screener
Indices Sector SigmaSpikes█ OVERVIEW
 
“The benchmark Dow Jones Industrial Average is off nearly 300 points as of midday today...”
“So what? Is that a lot or a little? Should we care?”
-Adam H Grimes-
 
This screener aims to provide Bird-Eye view across sector indices, to find which sector is having significant or 'out-of-norm' move in either direction.
The significance of the move is measured based on Sigma Spikes, a method proposed by Adam H. Grimes, where Standard Deviation of returns used as a baseline.
 *You can google his blog or read his book, got some gold in there, especially on how he use indicators for trading 
█ Understanding Sigma Spikes
As described by Grimes, moves in markets are only meaningful when we consider what “normal” is for that market. 
Without that baseline, the daily change number, and even the percent change on the day doesn’t really mean much.
To overcome that problem, Sigma Spikes, as a measure of volatility, attempt to put todays change in price (aka return) in context of the standard deviation of 20 days daily's return. 
Refer chart below:
  
1. The blue bars refer to each days return
2. The orange line is 1 time standard deviation of past 20days daily's return (today not included)
3. The red line is 2 time standard deviation of past 20days daily's return (today not included)
Using the ratio of today's return over the Std Deviation, determining your threshold (1,2,3,etc) will be the key that tells if today's move is significant or not. 
*Threshold referring to   times standard deviation, and different market may require different threshold.
*20 Days period are based on the Lookback Period, adjustable from user input window.
█ Features
- Scan up to 13 symbols at a time (Bursa (MYX) indices are defaulted, but you may change to any symbols/index from the user input setting)
█ Limitation
- Due to multiple use of security() function required to call other symbols, expect the screener to be slow at certain times
- Custom Timeframe currently accept only Daily and Weekly. I'll try to include lower timeframe in the next update
█ 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 :)
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
[Zekis]ScreenerA simple screener that scan thru multiple pairs for a setup.
The screener have as example an EMA 50 cross, so you have to change it with your indicator/strategy.
You can use a maximum of 40 security() function, right now there are 20, so you can have a total of 40 pairs.
SuperTrendRange by DGTSuperTrendRange  study attempts to determine  the state of the market  
•	whether  a well-established bull/bear trend  is present 
•	whether the market is  trading in a range  
SuperTrendRange (STR) takes into account the volatility of the market - further details regarding volatility can be found in the description of “Volatility Bands by DGT” study 
Due to its similarities to SupertTrend (ST) and Parabolic SAR (SAR), I will try to explain by stating differences between them 
SuperTrendRange uses both the ATR (Average True Range) and STDEV (Standard Deviation) as part of its calculations - unlike ST and SAR where they use only ATR 
Sensitivity of the indicator is adjusted using the multiplier setting of both ATR and STDEV 
Additionally, unlike ST, the source of the basis of SuperTrendRange can be selected among the assets price value or its moving average
Source and Length are adjustable too
The SuperTrendRange, like Parabolic SAR indicator, appears on a chart as a series of dots, either above, below or unlike Parabolic SAR both above and below of the asset's price
 A dot placed 
 -	 below  the price when the market is  trending upward   
-	 above  the price when it is  trending downward 
-	 both above and below  when the price starts  moving sideways  – this is a feature that both SuperTrend and Parabolic SAR misses, where they are known to produce false signals and losing trades, whereas SuperTrendRange emphasis the zones of the ranges occurring and in most cases are considered no trade recommended zones. Please note that the range width may vary depending on how the market is volatile.  It is up to the users to trade if it fits their trading strategies
Dots plotted above and below can be assumed as  Support and Resistance  levels    
Example usages – with trading opportunities 
Gold Monthly Chart
Bitcoin Daily Chart
Disclaimer:
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
The script is for informational and educational purposes only. Use of the script does not constitute professional and/or financial advice. You alone have the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
Supertrend Screener PanelScript to display Supertrend trend state of 8 different securities in a panel. Timeframe & Tickers which are to be displayed can be configured from settings. 
Part of code is from the ADX DI Monitoring Panel script by u/wugamlo with his permission. Thanks to him for that and do please check out his work also. 
[SCREENER] TAD SYSTEM (Shariah MYX)TAD SYSTEM
TAD stands for TURTLE, ATOM and DUCK
 
 With the three BUY arrows aligned accordingly with the TURTLE, ATOM and DUCK indicators, this triggers BUY signal
With the three SELL arrows aligned accordingly with the TURTLE, ATOM and DUCK indicators, this triggers SELL signal
 
F1 TURTLE   
  
F1 ATOM   
  
F1 DUCK   
  
  
  
Hull MA Scanner / Screener LabelThis screens for Hull MA trend reversal's in 10 different securities. If the label color is not visible due to the text in it being white colored, then choose a different color from settings. Also added a simple HullMA to it. If want can increase it upto 40 securities in the code which is upto user to decide. 
This was requested by soderstromkenan in comments and looked like a nice idea so decided to make it. 
The Hull MA logic is from "Hull50" by u/RafaelZioni with his permission. Screener logic from u/Quantnomad with his permission. 
SuperTrend EXPLORER / SCREENERSUPERTREND EXPLORER / SCREENER screens the BUY and SELL signals (trend reversals) for 38 user defined different tickers in Tradingview charts.
Simply input the short name of the ticker in Tradingview that you want to screen.
Script is derived from  zzzcrypto123 's work. Thanks for the permission letting me to use his logic.
 Terminology explanation:
Confirmed Reversal: Supertrend reversal that happened in the last bar and cannot be repainted.
Potential Reversal: Supertrend reversal that might happen in the current bar but can also not happen depending upon the timeframe closing price. 
Screener has also got a built in SuperTrend indicator which users can confirm the reversals on graphs.
Screener explores the 38 tickers in current graph's time frame and also in desired parameters of the SuperTrend indicator.
 SUPERTREND INDICATOR: 
STRATEGY version of SuperTrend Indicator:   
SuperTrend is one of the most common ATR based trailing stop indicators.
In this version you can change the ATR calculation method from the settings. Default method is RMA, when the alternative method is SMA .
The indicator is easy to use and gives an accurate reading about an ongoing trend. It is constructed with two parameters, namely period and multiplier. The default values used while constructing a superindicator are 10 for average true range or trading period and three for its multiplier.
The average true range (ATR) plays an important role in 'Supertrend' as the indicator uses ATR to calculate its value. The ATR indicator signals the degree of price volatility .
The buy and sell signals are generated when the indicator starts plotting either on top of the closing price or below the closing price. A buy signal is generated when the ‘Supertrend’ closes above the price and a sell signal is generated when it closes below the closing price.
It also suggests that the trend is shifting from descending mode to ascending mode. Contrary to this, when a ‘Supertrend’ closes above the price, it generates a sell signal as the colour of the indicator changes into red.
A ‘Supertrend’ indicator can be used on equities, futures or forex, or even crypto markets and also on daily, weekly and hourly charts as well, but generally, it fails in a sideways-moving market.
Source function added to use the indicator as the ATR Trailing Stop indicator.
Just change source type hl2 to close.
different variations might be useful.
Supertrend Screener LABELThis screens for Supertrend reversal's in 10 different securities. The main logic for the screener is taken from "Simple Custom Screener in Pinescript" by QuantNomad with his permission. If the label color is not visible due to the text in it being white colored, then choose a different color from settings. Also added a simple supertrend to it. 
Terminology explanation:
Confirmed Reversal: Supertrend reversal that happened in the last bar and cannot be repainted. 
Potential Reversal: Supertrend reversal that might happen in the current bar but can also not happen depending upon the timeframe closing price. 
Uptrend/Downtrend : Shows all the tickers that are either currently in uptrend or downtrend.
MTF Stoch RSI ScreenerDisplays when multiple timeframes of Stochastic RSI are overbought/oversold. Multiple consecutive timeframes being overbought/oversold can signify a short term top or bottom. 
Thanks to Micse in Pinescripters telegram who helped remove a few errors from this. 
CHK 3TIMEFRAME RSI OB-OS SCREENER Sharing RSI Screener. It shows RSI Situation for 12 Stocks.
 User can replace the stocks as per their respective exchange
 User can select 3 Time Frames of his/her choice
 User can change the OverBought / OverSold  Values to 70/30. This indicator uses 80/20.
 RSI BELOW 50  = PINK COLOR
 OVERSOLD       = MAROON COLOR
 RSI ABOVE 50   = LIGHT GREEN COLOR
 OVERBOUGHT  = DARK GREEN COLOR
 For Example : This Chart and the Indicator snapshot shows, the stock BPCL is Oversold for the 30 Min TimeFrame 
 For Example : The indicator snapshot shows, the stocks HDFC and AUBANK have their RSI's below 50 across the 30 Min / 60 Min / 120 Min 
 TimeFrames
Please give it some time to load, and every time you change Resolution.
Add another one, to have a screener screening 24 stocks :)
CustomScreenerTo apply your indicator with screener , please modify the section which i mention  "Start your indicator pine script"  &  "End your indicator pine script"
 
 
 At the  pinescript section  you will able to  change the ticket symbol .
 I only able to  show screener result with 10 item in 1 times . To view more result,  please go to setting and change stock list  "1-10">"11,20">"21-30".....
 Able to screener  100 items  with this indicator.
 Kindly change the exchange and stock in the pinescript according your watchlist.
 
As examples, my indicator is to determine the stock in which trend, i want to find out all stock with aqua color trend
The screener result show only 9 of 10 are in aqua color trend. 
Custom Screener with Alerts [QuantNomad]Some time ago I published an example of simple custom screener in PineScript: 
The only thing this screener did is created a dynamic label with screener output. 
Recently TradingView announced alerts from the strategy with the possibility to add custom messages to alerts. 
So using it I was able to create a bit more advanced screener which sends results as alert messages. With tools like Alertatron, you can easily redirect them to Telegram if you want. 
It works for 40 symbols (limitation of the number of security calls).
To create your own screener you need to change only screenerFunc. The logic of this function is very simple, it outputs value you want to display in screener and condition based on which your screener should filter your stocks. 
To create alerts for this screener create an alert from strategy and use  {{strategy.order.alert_message}}  as alert message. 
Do you know now how to make this screener better? Let me know. 
 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.
BEST RSI Divergences ScreenerHello traders
I hope you're all hanging on at home with what's going on these days...
The good news is.... it gives us more time to trade ^^.... #positive #attitude
 I - Concept 
This screener detects whether the regular RSI divergences based on the TradingView Divergence built-in indicator (made by the gentleman @everget I believe)
With this screener, you can see in 1 view which of your favorite cryptos/stocks/forex pairs/etc. showing strong divergences
The gentlemen (and demoiselles) traders can play with the lookback/ranges inputs to adjust the divergences based on what they think is best of their trading/timeframe/instrument/life
On that script screenshot, I'm showing the BYBIT:BTCUSD part of the screener matching with the divergences on the chart
 II - How did I set the screener 
The visual signals are as follow:
- square: whenever a divergence is detected
 Then the colors are: 
- green when there is bullish regular divergence
- red when there is bearish regular divergence
Best regards
Dave
Best Volatility Calculator (Multi Instruments)Hello traders 
 A bit of context 
Definition: Volatility is defined as the close of current candle - close of the previous N candle
This is an alternative version of my  Best Volatility Calculator 
The other version is displayed on a panel below. This one overlays on the chart using the "overlay=true" setting
This indicator shows the average volatility, of last N Periods, for the selected time frames and for 2 selected instruments.
You can select up to 2 timeframes with this version
Presented as Currency, Pip, percentage labels in a panel below.
Will calculate in real-time only for the current instrument on the chart.
The indicator is coded to not be repainting
 Example 
In the indicator screenshot, I used a lookback period of 1.
That compares the current candle close versus the previous one for the daily and weekly timeframe
Showing how the results look like using FOREX instruments (where using the PIPS labels make more sense than with cryptocurrency assets)
  
Best regards
Dave
Best Ichimoku ScreenerHello traders
Continuing deeper and stronger with the screeners' educational series one more time
I - Concept
This screener detects whether the price goes above, below or stays in between the Ichimoku cloud
II - How did I set the screener
The visual signals are as follow:
- square: Above or Below
Then the colors are:
- green when above the cloud
- red when below the cloud
- orange when in the cloud
Best regards,
Dave
BEST ABCD Pattern ScreenerHello ladies and gentlemen traders
Continuing deeper and stronger with the screeners' educational series one more time.
This one is heavy crazy mega cool (pardon my french).
I - Concept
I present to you, ladies and gentlemen, the first screener for harmonic patterns.
Starting with an ACBD pattern screener this time!!
I used the calculations from  Ricardo Santo's script 
In short, he's using fractals (regular or Bill Williams ) for the pattern calculations. A masterpiece !!!
The screener will show in 1 consolidated chart the ABCD patterns for 5 selected assets. Could be stocks, forex, crypto, whatever you feel like making money with
II - Definitions
The ABCD pattern ( AB=CD ) is one of the classic chart patterns which is repeated over and over again.
The ABCD pattern shows perfect harmony between price and time.
More info  here 
The Williams Fractal is an indicator, developed by Bill Williams, that aims to detect reversal points (highs and lows) and marks them with arrows.
Up fractals and down fractals have specific shapes. The Williams Fractal indicator helps users determine in which direction price will develop
Source: www.tradingview.com
III - How did I set the screener
The visual signals are as follow:
- square: whenever there is an ABCD pattern detected
Then the colors are:
- green when a bullish pattern is detected
- red when a bearish pattern is detected
🔸 The script screenshot shows two red squares matching two ABCD bearish pattern from the above panel. As the chart is showing APPL, I highlighted where the screener mentioned the fruit stock ( APPLE, pun, bad joke, Dave out...)
🔸 I tried to make it as clear as I could with red arrows
Once again, we pushed together the limits of pine script beyond of what we thought was possible, beyond the realm of this world, reaching finally the dreamt pine script heaven (am I going too far? feel free to tell me)
Best regards,
Dave
CHK AIH (ACTION IS HERE!)-ALMA SCREENERWe do not like to stare at the screen whole day, instead we like to jump where the
action is.... The Screener was written with this in mind
CHK AIH (ACTION IS HERE!)-ALMA BASED SCREENER
FEATURES  
  User can enter 3 Resolutions of his/her choice
  User can select 3 Mov Avg Length of his her choice, which would be identical for all the three timeframes
  User can enter stock basis his/her region's stock exchange
  User can shift the screener left or right if not visible in a Multiscreen mode
  Uses ALMA (Arnaud Legoux Mov Avg) as it smooth and reactive
  Code is also provided below of MTF ALMA Moving Average OVERLAY on which this screener is based
LOGIC  
  For a particular timeframe If all the Moving Average are calibrated in one direction, it will show the requisite color.
   For Example in an ideal scenario for a bull trend ALMA(5)> ALMA(13) > ALMA(21), once such a situation is identified, the screener will show green.
   Yellow means lack of Calibration.
  When 3 timeframes are calibrated, it becomes a high Probability Trade
BUGS  
  It is not allowing to enter the D/W/M timeframes, timeframe in numbers ...5/15/60 is working fine. If somebody can fix it
   it would be great
LIMITATIONS 
  Because of TV's limitations only 4 scrips can be entered, however one add the indicator again with new scrips
//////////// CREDITS ////////////////////////////////////////////////////////////////////////////////////
////  hxxps://www.tradingview.com/script/rwdgyEZe/
///   Thank You Inno14 for graciously sharing your work. Your work has helped immensely !!!
////////////////////////////////////////////////////////////////////////////////////////////////////////
ICICIBANK
TECHMAHINDRA
YESBANK
BEST MA Cross/MACD ScreenerHello traders
Continuing deeper and stronger with the screeners' educational serie one more time
 I - Concept 
This is the first flexible screener I'm releasing. Screener detecting a convergence whenever the MACD and MM cross are giving a signal in the same direction.
Those who know me from TradingView ... are aware that I'm big on convergences. I totally think that 1 indicator isn't enough - whatever the timeframe. 
But building my own convergence detection systems has been fruitful for me
 II - How did I set the screener 
The visual signals are as follow:
- square: MACD + MA cross convergence.
- diamond: Only MACD is selected
- circle: Only MA cross is selected
Then the colors are:
- green when bullish
- red when bearish
 Example 
Below, I highlighted why we see diamonds on the top screener panel. This is because I only selected the MACD filter
  
 Cool Hacks 
Don't forget that you can add the same indicator multiple times on your chart :)
Wishing you all the BEST trading
Dave
BEST Long Term Levels Breakout ScreenerHello traders
Continuing deeper and stronger with the screeners' educational serie one more time (#daft #punk #private #joke)
We don't have to wait for TradingView to allow screener based on custom indicator - we can build our own ^^
 I - Long Terms concept 
I had the idea from @scarff. 
I think it's genius and I use this long terms level in my trading across all assets.
The screener, in particular, analyzes whenever the price breaks out a weekly/monthly/quarterly/yearly level  on candle close .
Triggering events on candle close = we get rid of the REPAINTING = we remove the fake signals (in that case the fake breakouts). 
The candle close is based on the close of the current chart => if the chart displays candlesticks on the weekly timeframe, then the considered close will be the weekly close.
If in daily timeframe, the close will be .............................. 4h (#wrong)..... kidding :) ..............  DAILY obviously 
 II - How did I set the screener 
The visual signals are as follow:
- square: breakout of a high/low  weekly  level
- circle: breakout of a high/low  monthly  level
- diamond: breakout of a high/low  quarterly  level
- flag: breakout of a high/low  yearly  level
- dash: none of the above
Then the colors are:
- green when bullish
- red when bearish
- orange/dash when none of the above
 Cool Hacks 
"But sir... what can we do with only 3 instruments for a screener?" I agree not much but...
As said previously... you can add multiple times the same indicator on a chart :)
Wishing you all the BEST trading and.... wait for it... BEST weekend
Dave
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
Ultimate EMA ScreenerHello traders
Very busy preparing a few stuff for Black Friday but wanted to remind that I still know Pinescript and how to step up my game :)
My master @RicardoSantos once again showed me how to push the pinescript limits one step/dimension further. Kudo also to my client (Judy) for this amazing idea.
I inspired myself from his script () to display multiple assets in the same panel - without breaking the chart scaling.
In that case, I'm comparing 5 EMAs relatively to each other and display:
- a square if they're stacked properly
- a triangle if two of them are stacked properly
- a dash otherwise
For those interested, the conditions are in the  f_securitys  function.
I posted in the past a few screeners using labels but we're limited to 50 labels per script. There isn't such limitation when using the  plotshape   function - giving us more complete screeners. #uhuuuu
I'll post a few more examples this week with different trading strategies/combinations. The possibilities here are (close to) limitless.
I'm using the security built-in function to call external assets (here different forex pairs) and we're limited to 40 security calls per script. 
But nothing preventing us from duplicating the same script a few times and calling different assets each time :) If you'd like to display 10 forex pairs, you only need to add that script on your chart twice and select 5 pairs for the first panel, 5 other pairs for the second panel.
You're welcome <3
All the BEST
Dave






















