badshah_e_alam

trend Screener downtrend

this 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.
Release Notes: New UPDATE:
after trading View announced alert() function , now it is possible to set alert for all this screener. Once you set up alert , you will be informed of the new symbol coming in the screener.
Release Notes: Release Notes: Added option to choose time frame for the screener, by default it is to the same as the chart.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?
An enthusiast trader. I code my strategies in pine script.DM me or Mail Me for any Info at tabrejalam786007@gmail.com, you can donate me at PayPal on mentioned mail.

Comments

@badshah_e_alam, thanks for this great idea !!

Why is there a restriction to 40/80 positions?

By aim is to develop a screener for stock exchanges (selected by user input) based on the RSL (relative strength index from Levy/available as pine script).
As a result a table with 2 columns (share_name and rsl-value), sorted by rsl value, should be listed.

Tanks for any ideas and tips.
+1 Reply
@Holle164, Thank you for asking, Why is there a restriction to 40/80 positions?
The restriction is because of maximum number of security functions and variable limit exceeds if i use more than 40 symbols.

to coustomize according to your requirement you can make changes in function "screenerFunc() " in the code.
Reply
hello Sir,
this is really a nice attempt . now could you please configure this for NIFTY shares , so that we could easily trade in Nifty futures based on this wonderful trend ananlysis.
NIFTY 50 is an Indian index, comprises of top 50 companies of India.
+1 Reply
@namwal, thanks for asking. You can easily change the symbol in input section of the indicator. you can replace any or all symbol in input settings.
+1 Reply
namwal badshah_e_alam
@badshah_e_alam, thanks for the reply, but the nifty 50 consists of 50 stocks, but in your case, i would only add 40 stocks, so how to do it for 50 stocks, please guide ...
+1 Reply
@namwal, MAKE A copy of this code and use it on two chart layout (rename the copy of the code), then replace the symbol according to your requirement , now you can screen 80 stocks.
+1 Reply
gopinath007777 badshah_e_alam
@badshah_e_alam, correct as many as u can , can u make one for top gainers% and losers%
Reply
badshah_e_alam gopinath007777
@gopinath007777, you can get that at tradingview's stock screener its already there https://in.tradingview.com/screener/
Reply
The screener is only for visual confirmation. Any alert set on the screener will not help.
IT is only for "VISUAL CONFIRMATION". Please don't use it to set alerts.
Reply
gopinath007777 badshah_e_alam
@badshah_e_alam, u can make alerts u can make strategies
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out