Trend Matrix: A Smart Way to Navigate the Stock Market

The Trend Matrix serves as a powerful tool for identifying market assets that are performing exceptionally well, offering a structured method for recognizing high-performing assets, guiding traders toward more successful strategies, and ultimately enhancing financial returns, making it an invaluable asset in technical analysis

1–2 minutes


The Trend Matrix is a game-changing tool for traders and investors, helping identify high-performing stocks, optimize portfolio decisions, and enhance returns.

Continue reading “Trend Matrix: A Smart Way to Navigate the Stock Market”

Stock Screener – Create a Relative Strength Matrix via Advanced Scanner; Create and Overwrite a MyFavourite WatchList

This is an illustrative scan that shows how to use the Advanced Scanner to create a Relative Strength Matrix. It also demonstrates the process of filtering symbols based on RS parameters, automatically adding qualifying symbols to a WatchList, and overwriting the MyFav WatchList each time the scan is executed.

1–2 minutes


ATTN: When performing a scan for a Relative Strength Matrix, please be aware that it is presently constrained to examining a maximum of 200 symbols.

This limitation is in place due to the substantial amount of hardware resources required to scan such a large number of symbols.

To put it into perspective, scanning a RS Matrix of 200 symbols is equivalent to examining a total of 39,800 symbol combinations (200*199), which involves a substantial workload.


'Restricted to 200 symbols at a time

Set Var Total = PFTOTALBUYS + PFTOTALX

List symbols 
where Candle Close > 50 
AND Candle Close < 10000 
AND Candle Volume > 25000 
AND Candle Trades > 1000

Add Column PFSTATUS
Add Column PFTOTALBUYS as Buys
 Sort on Column Buys desc
 Group rows by Buys
Add Column PFTOTALX as X
Add Column Total Format 0

Add Column Candle Close as Close
Add Column Candle Volume AS Volume
Add Column Candle Trades AS Trades
Add Column Sector

Add Column SYMBOL1
 Group rows by SYMBOL1

Set chart type to PF(PERCENTAGETYPE,2,3)
create RSMATRIX

Add to MyFav (SYMBOL1) RSM-NIFTY100 OVERWRITE

Apply Filter 
PFTOTALBX > 0.5 * SYMBOLCOUNT(SYMBOL1) 
AND PFTOTALBUYS > 0.66 * SYMBOLCOUNT(SYMBOL1) 
AND PFTOTALX > 0.66 * SYMBOLCOUNT(SYMBOL1) 

Apply to NIFTY100

Below is a breakdown of the scan presented in a step-by-step manner.

Continue reading “Stock Screener – Create a Relative Strength Matrix via Advanced Scanner; Create and Overwrite a MyFavourite WatchList”

Relative Strength Matrix: The Ultimate Tool for Spotting High-Momentum Stocks as They Surge

The Relative Strength Matrix empowers traders by offering a clear and structured way to identify assets that outperform their peers; this leads to more informed trading decisions and the potential for improved returns, making it an indispensable tool in the world of technical analysis

1–2 minutes


The Relative Strength Matrix empowers traders by offering a clear and structured way to identify assets that outperform their peers. This helps traders make better decisions and potentially increase returns, making it a valuable tool in technical analysis.

Continue reading “Relative Strength Matrix: The Ultimate Tool for Spotting High-Momentum Stocks as They Surge”

Relative Strength Charts: Using Ratio or RS Charts for Smarter Trading and Investing

Relative Strength (RS) charts empower traders by quickly highlighting which assets are gaining momentum and which are losing it; this information allows traders to make well-informed decisions, enhancing their chances of success in the financial markets

1–2 minutes


Gain an Edge in the Markets with Relative Strength Charts – Identify Outperformers, Avoid Laggards, and Optimize Your Trading Strategy

Continue reading “Relative Strength Charts: Using Ratio or RS Charts for Smarter Trading and Investing”

Stock Screener (‘Sentiment’) – Example 23: Define a time frame and classify daily, monthly and quarterly % fluctuations in closing prices within that timeframe into several distinct categories

This is an example of a (sentiment-based) scan that uses the newly introduced market aggregate functions in the Advanced Scanner that ships with ChartAlert

1–2 minutes

ATTN: This scan is an extension of an earlier scan (refer to Example 22: Define a time frame and classify the daily % fluctuations in closing prices within that timeframe into ‘n’ distinct categories), with the exception of extracting a few more data points in this scan.

List data from "01-Sep-2023"

Add col MARKET_COUNT(chg%<=-4) as Chg <-4% format 0
Add col MARKET_COUNT(chg%<0 and chg%>-4) as Chg 0 To -4% format 0
Add col MARKET_COUNT(chg%>0 and chg%<4) as Chg 0 to 4% format 0
Add col MARKET_COUNT(chg%>=4) as Chg >4% format 0

Add col MARKET_COUNT(chg%(cl, cl a month ago) >= 25) as MChg >25% format 0
Add col MARKET_COUNT(chg%(cl, cl a month ago)<= -25) as MChg <-25% format 0

Add col MARKET_COUNT(chg%(cl, cl a month ago) >= 50) as MChg >50% format 0
Add col MARKET_COUNT(chg%(cl, cl a month ago)<= -50) as MChg <-50% format 0

Add col MARKET_COUNT(chg%(cl, cl 34 bars ago) >= 13) as 34BChg >13% format 0
Add col MARKET_COUNT(chg%(cl, cl 34 bars ago)<= -13) as 34BChg <-13% format 0

Add col MARKET_COUNT(chg%(cl, cl a quarter ago) >= 25) as QChg >25% format 0
Add col MARKET_COUNT(chg%(cl, cl a quarter ago)<= -25) as QChg <-25% format 0

Add Column chg%
Add Column chg%(cl, cl a month ago) as MChg
Add Column chg%(cl, cl 34 bars ago) as 34BChg
Add Column chg%(cl, cl a quarter ago) as QChg

Apply to niftymic250

Set report type to SUMMARY-DATEWISE

Below is a breakdown of the scan presented in a step-by-step manner.


Continue reading “Stock Screener (‘Sentiment’) – Example 23: Define a time frame and classify daily, monthly and quarterly % fluctuations in closing prices within that timeframe into several distinct categories”

Stock Screener (‘Sentiment’) – Example 22: Define a time frame and classify the daily % fluctuations in closing prices within that timeframe into ‘n’ distinct categories

This is an example of a (sentiment-based) scan that uses the newly introduced market aggregate functions in the Advanced Scanner that ships with ChartAlert

1–2 minutes

This functionality was introduced in October 2023 (Version 23.10.1)

List data from "01-Sep-2023" 

Add col MARKET_COUNT(chg%<=-4) as Chg <=-4% format 0
Add col MARKET_COUNT(chg%<0 and chg%>-4) as Chg 0 To -4% format 0

Add col MARKET_COUNT(chg%>0 and chg%<4) as Chg 0 to 4% format 0
Add col MARKET_COUNT(chg%>=4) as Chg >=4% format 0

Add Column chg%

Apply to nifty500

Set report type to SUMMARY-DATEWISE

Below is a breakdown of the scan presented in a step-by-step manner.


Continue reading “Stock Screener (‘Sentiment’) – Example 22: Define a time frame and classify the daily % fluctuations in closing prices within that timeframe into ‘n’ distinct categories”

Stock Screener (‘Sentiment’) – Example 21: Count and display the number and % of stocks that are currently trading above/below their respective n-bar Moving Average

This is an example of a (sentiment-based) scan that uses the newly introduced market aggregate functions in the Advanced Scanner that ships with ChartAlert

1–2 minutes

This functionality was introduced in October 2023 (Version 23.10.1)

List symbols

Add Column Close
Add Column Volume format 0,000

Add Column IIF(cl > ema(50),1,0) as IsAbvEMA
 Group rows by IsAbvEMA

Add Column CHG%(cl,ema(50)) as Diff%
 Sort on Column Diff% desc

Add Column MARKET_COUNT(cl > ema(50)) as AbvEMA
Add Column MARKET_COUNT (cl < ema(50)) as BlwEMA
Add col MARKET_PERCENT(cl > ema(50)) as AbvEMA%
Add col MARKET_PERCENT(cl < ema(50)) as BlwEMA%

Apply to NIFTY500

plot ema(50)

Below is a breakdown of the scan presented in a step-by-step manner.


Continue reading “Stock Screener (‘Sentiment’) – Example 21: Count and display the number and % of stocks that are currently trading above/below their respective n-bar Moving Average”

Stock Screener – Example 20: List all instances of a n-mo Price Performance greater than 100% in the last 5+ years

This is an example of a scan (all instances of a 100%+ return in any ‘n’-month rolling period in the last ‘m’ years) that can be written using the Advanced Scanner that ships with ChartAlert.

1–2 minutes


ATTN: This scan is similar to an earlier scan (refer to Example 19: n-month Price Performance greater than 100% in the last 5+ years), with the exception that we’re actually going to extract data in this scan.


List data from "01-Jan-2018" 
where chg%(cl, cl 2 months ago) > 100

Add Column date 2 months ago as Dt2mAgo
Add Column close 
Add Column close 2 months ago as C2mAgo

Add Column chg%(cl, cl 2 months ago) as 2moChg
Add Column SymbolValue(chg%(cl, cl 2 months ago),NIFTY) as 2moChgNifty

Apply to nifty500

Below is a breakdown of the scan presented in a step-by-step manner.


Continue reading “Stock Screener – Example 20: List all instances of a n-mo Price Performance greater than 100% in the last 5+ years”

Stock Screener – Example 19: n-month Price Performance greater than 100% in the last 5+ years

This is an example of a scan (most recent instance of a 100%+ return in any ‘n’-month rolling period in the last ‘m’ years) that can be written using the Advanced Scanner that ships with ChartAlert

1–2 minutes

List symbols where DATEWHEN(chg%(cl, cl 2 months ago) > 100) > "01-Jan-2018"

Add Column DATEWHEN(chg%(cl, cl 2 months ago)>100) as Date
Sort on Column Date desc
Add Column VALUEWHEN(chg%(cl, cl 2 months ago)>100,chg%(cl, cl 2 months ago)) as 2moChg
Add Column VALUEWHEN(chg%(cl, cl 2 months ago)>100,SymbolValue(chg%(cl, cl 2 months ago),NIFTY)) as 2moChgNifty

Apply to nifty500

Below is a breakdown of the scan presented in a step-by-step manner.


Continue reading “Stock Screener – Example 19: n-month Price Performance greater than 100% in the last 5+ years”

McGinley Dynamic Indicator Stock Screener

The McGinley Indicator aids traders by providing adaptive smoothing of price data, reducing lag during trends, and minimizing false signals during sideways markets; it assists in confirming trends and identifying potential entry and exit points, thereby enhancing the accuracy of trading decisions

3 minutes


This post focuses on customizable McGinley Dynamic Indicator factory scans, which can be edited, modified, or rewritten and then scanned using ChartAlert’s native stock screener or technical analysis scanner, namely the Basic Scanner and Advanced Scanner.


Continue reading “McGinley Dynamic Indicator Stock Screener”