Stock Screener – Example 14: Multiple Parameters Multiple Values; 12Mo PP; Top & Bottom 20

This is an example of an optimized scan that demonstrates some enhanced functionality; it can replace the need for writing several scans (as was required in the older versions of ChartAlert); this functionality for the Advanced Scanner was introduced in September 2023.

2 minutes

This functionality will be introduced in September 2023 (Version 23.9.1)

Below is an illustration of an optimized scan that can be created using the Advanced Scanner in ChartAlert.

This one enhanced scan, wherein multiple parameters/ variables can now accept multiple values/ inputs, now replaces the need for writing at least 26 separate scans as was required in the previous versions of ChartAlert.


ATTN: This scan is similar to the earlier scan (refer to Example 13: Multiple Parameters Multiple Values; Yearly PP; Top 20 Bottom 20), with the exception that this scan will list the Top 20 and Bottom 20 symbols of the last 13 months (including the ongoing month).


[BEGIN Top20 M2 mths ago]
Set OptVar M1 = Min:1, Max:13, Step:1
Set OptVar M2 = Min:0, Max:12, Step:1
List symbols
Add Column C M1 bars ago as C1
Add Column C M2 bars ago as C2
Add Column Date M1 bars ago as D1
Add Column Date M2 bars ago as D2
Add Column Chg%(C M2 bars ago, C M1 bars ago) as chg%
Sort on Column chg% desc limit 20
Apply to Nifty
Set periodicity to Monthly
[END]

[BEGIN Bot20 M2 mths ago]
Set OptVar M1 = Min:1, Max:13, Step:1
Set OptVar M2 = Min:0, Max:12, Step:1
List symbols
Add Column C M1 bars ago as C1
Add Column C M2 bars ago as C2
Add Column Date M1 bars ago as D1
Add Column Date M2 bars ago as D2
Add Column Chg%(C M2 bars ago, C M1 bars ago) as chg%
Sort on Column chg% limit 20
Apply to Nifty
Set periodicity to Monthly
[END]

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


Continue reading “Stock Screener – Example 14: Multiple Parameters Multiple Values; 12Mo PP; Top & Bottom 20”

Stock Screener – Example 13: Multiple Parameters Multiple Values; Yearly PP; Top & Bottom 20

This is an example of an optimized scan that demonstrates some enhanced functionality; it can replace the need for writing several scans (as was required in the older versions of ChartAlert); this functionality for the Advanced Scanner will be introduced in September 2023.

1 minute

This functionality will be introduced in September 2023 (Version 23.9.1)

Below is an illustration of an optimized scan that can be created using the Advanced Scanner in ChartAlert.

This one enhanced scan, wherein multiple parameters/ variables can now accept multiple values/ inputs, now replaces the need for writing atleast 44 separate scans as was required in the previous versions of ChartAlert.

[BEGIN Top20 Year1-Year2]
Set OptVar Year1 = Min:2001, Max:2022, Step:1
Set OptVar Year2 = Min:2002, Max:2023, Step:1

Set Var Bar1 = BARATDATE("31-Mar-Year1")
Set Var Bar2 = BARATDATE("31-Mar-Year2")

Set Var C1 = ValueAt(Bar1)
Set Var C2 = ValueAt(Bar2)

List symbols
Add Column C1
Add Column C2
Add Column Chg%(C2,C1) as chg%
Sort on Column chg% desc limit 20
Apply to Nifty
[END]


[BEGIN Bottom20 Year1-Year2]
Set OptVar Year1 = Min:2001, Max:2022, Step:1
Set OptVar Year2 = Min:2002, Max:2023, Step:1

Set Var Bar1 = BARATDATE("31-Mar-Year1")
Set Var Bar2 = BARATDATE("31-Mar-Year2")

Set Var C1 = ValueAt(Bar1)
Set Var C2 = ValueAt(Bar2)

List symbols
Add Column C1
Add Column C2
Add Column Chg%(C2,C1) as chg%
Sort on Column chg% limit 20
Apply to Nifty
[END]

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


Continue reading “Stock Screener – Example 13: Multiple Parameters Multiple Values; Yearly PP; Top & Bottom 20”

Stock Screener – Example 12: Multiple Scan Blocks (like a screener) (“Set report type to…”)

This is an example of an optimized scan that demonstrates the enhanced (“Set report type to…”) function; it can use “Multiple Scan Blocks” to mimic a screener; it can replace the need for maintaining several scans (as was required in the older versions of ChartAlert); this functionality for the Advanced Scanner will be introduced in September 2023.

1 minute

This functionality will be introduced in September 2023 (Version 23.9.1)

Below is an illustration of an optimized scan that can be created using the Advanced Scanner in ChartAlert.

This one enhanced scan now replaces the need for writing two separate scans as was required in the previous versions of ChartAlert . . . It actually functions like a screener by incorporating two sections of code (each marked with its own BEGIN/END statements) designed to identify and analyze two separate conditions.


ATTN: This scan is an identical copy of an earlier scan (refer to Example 4: Multiple Scan Blocks (like a screener)), with the exception of the final line (“Set report type to SUMMARY”).


[BEGIN close>ema(20)]

List symbols where c > ema(20)

Add Column Close
Add Column ema(20) chart(lw=2)

Apply to NIFTY500

[END]

[BEGIN close<ema(20)]

List symbols where c < ema(20)

Add Column Close
Add Column ema(20) chart(lw=2)

Apply to NIFTY500

[END]

Set report type to SUMMARY

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


Continue reading “Stock Screener – Example 12: Multiple Scan Blocks (like a screener) (“Set report type to…”)”

Stock Screener – Example 11: Multiple Parameters Multiple Values (“step”) (“Cross Variables”)

This is an example of an optimized scan that demonstrates the enhanced (“step”) (“Cross Variables”) functions; it can replace the need for writing several scans (as was required in the older versions of ChartAlert); this functionality for the Advanced Scanner will be introduced in September 2023.

1 minute

This functionality will be introduced in September 2023 (Version 23.9.1)

Below is an illustration of an optimized scan that can be created using the Advanced Scanner in ChartAlert.

This one enhanced scan, wherein multiple parameters/ variables can now accept multiple values/ inputs for scanning as well as create a processing matrix between inputs, now replaces the need for writing atleast twelve separate scans as was required in the previous versions of ChartAlert.

[BEGIN timeP1 XABV timeP2]

Set OptVar timeP1 = min:10,max:30,step:10
Set OptVar timeP2 = min:50,max:200,step:50

Cross OptVar

List symbols where SMA(timeP1) crossed above SMA(timeP2)

Add Column Close
Add Column SMA(timeP1) chart(c=red, lw=2)
Add Column SMA(timeP2) chart(c=green, lw=2)

Apply to NIFTY500

[END]

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


Continue reading “Stock Screener – Example 11: Multiple Parameters Multiple Values (“step”) (“Cross Variables”)”

Stock Screener – Example 10: Multiple Parameters Multiple Values (“step”) (“Cross OptVar”)

This is an example of an optimized scan that demonstrates the enhanced (“step”) (“Cross OptVar”) functions; it can replace the need for writing several scans (as was required in the older versions of ChartAlert); this functionality for the Advanced Scanner will be introduced in September 2023.

1 minute

This functionality will be introduced in September 2023 (Version 23.9.1)

Below is an illustration of an optimized scan that can be created using the Advanced Scanner in ChartAlert.

This one enhanced scan, wherein multiple parameters/ variables can now accept multiple values/ inputs for scanning as well as create a processing matrix between inputs, now replaces the need for writing at least twenty (!) separate scans as was required in the previous versions of ChartAlert.


ATTN: This scan is similar to the earlier scan (refer to Example 9: Multiple Parameters Multiple Values (“step”)), with the exception of the 4th line (“Cross OptVar”).


[BEGIN EMA(timeP1), RSI(timeP2)]

Set OptVar timeP1 = min:10,max:30,step:5
Set OptVar timeP2 = min:10,max:16,step:2

Cross OptVar

List symbols where c crossed above ema(timeP1) AND RSI(timeP2) < 70

Add Column Close
Add Column ema(timeP1) chart(lw=2)
Add Column rsi(timeP2) chart

Apply to NIFTY100

[END]

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


Continue reading “Stock Screener – Example 10: Multiple Parameters Multiple Values (“step”) (“Cross OptVar”)”

Stock Screener – Example 9: Multiple Parameters Multiple Values (“step”)

This is an example of an optimized scan that demonstrates the enhanced (“step”) function; it can replace the need for writing several scans (as was required in the older versions of ChartAlert); this functionality for the Advanced Scanner will be introduced in September 2023.

1 minute

This functionality will be introduced in September 2023 (Version 23.9.1)

Below is an illustration of an optimized scan that can be created using the Advanced Scanner in ChartAlert.

This one enhanced scan, wherein multiple parameters/ variables can now accept multiple values/ inputs for scanning, now replaces the need for writing atleast six separate scans as was required in the previous versions of ChartAlert.

[BEGIN EMA(timeP1), RSI(timeP2)]

Set OptVar timeP1 = min:10,max:30,step:10
Set OptVar timeP2 = min:10,max:14,step:2

List symbols where c crossed above ema(timeP1) AND RSI(timeP2) < 70

Add Column Close
Add Column ema(timeP1) chart(lw=2)
Add Column rsi(timeP2) chart

Apply to NIFTY100

[END]

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


Continue reading “Stock Screener – Example 9: Multiple Parameters Multiple Values (“step”)”

Stock Screener – Example 8: Multiple Parameters Multiple Inputs (Yearly Price Performance) (“Set report type to…”)

This is an example of an optimized scan (yearly price performance) that demonstrates the enhanced “Set report type to…” function; it can also replace the need for writing several scans (as was required in the older versions of ChartAlert); this functionality for the Advanced Scanner was introduced in September 2023.

1 minute

This functionality will be introduced in September 2023 (Version 23.9.1)

Below is an illustration of an optimized scan that can be created using the Advanced Scanner in ChartAlert.

This one enhanced scan, wherein multiple parameters/ variables can now accept multiple values/ inputs for scanning, now replaces the need for writing atleast four separate scans as was required in the previous versions of ChartAlert.


ATTN: This scan is similar to the earlier scan (refer to Example 7: Single Parameter Multiple Inputs; Weekly Price Performance), with the exception of yearly price performance being scanned, and the final line (“Set report type to SUMMARY”).


[BEGIN 1yrPP chg1-chg2]

Set OptVar chg1 = 0, 10, 20, 50
Set OptVar chg2 = 10, 20, 50, 100

List symbols where Chg%(cl, cl 1 year ago) >= chg1 
AND Chg%(cl, cl 1 year ago) < chg2

Add Column Chg%(cl, cl 1 year ago) as chg%

Apply to NIFTYTOTAL

[END]

Set report type to SUMMARY

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


Continue reading “Stock Screener – Example 8: Multiple Parameters Multiple Inputs (Yearly Price Performance) (“Set report type to…”)”

Stock Screener – Example 7: Single Parameter Multiple Inputs (Weekly Price Performance)

This is an example of an optimized scan (weekly price performance) that can replace the need for writing several scans (as was required in the older versions of ChartAlert); this functionality for the Advanced Scanner will be introduced in September 2023.

1 minute

This functionality will be introduced in September 2023 (Version 23.9.1)

Below is an illustration of an optimized scan that can be created using the Advanced Scanner in ChartAlert.

This one enhanced scan, wherein a single parameter or variable can now accept multiple values or inputs for scanning, now replaces the need for writing five separate scans as was required in the previous versions of ChartAlert.

[BEGIN timep-wk PP >5%]

Set OptVar timep = 1,2,4,6,8 

List symbols where Chg%(cl, cl timep weeks ago) > 5

Add Column Chg%(cl, cl timep weeks ago) as chg% 

Apply to NIFTY

[END]

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


Continue reading “Stock Screener – Example 7: Single Parameter Multiple Inputs (Weekly Price Performance)”

Stock Screener – Example 6: Single Parameter Multiple Inputs; Summary Report (“Set report type to…”)

This is an example of an optimized scan wherein a single parameter or variable can accept multiple inputs thereby replacing the need for writing several scans (as was required in the older versions of ChartAlert); it also demonstrates the enhanced “Set report type to…” function; this functionality will be introduced in September 2023.

1 minute

This functionality will be introduced in September 2023 (Version 23.9.1)

Below is an illustration of an optimized scan that can be created using the Advanced Scanner in ChartAlert.

This one enhanced scan, wherein a single parameter or variable can now accept multiple values or inputs for scanning, now replaces the need for writing five separate scans as was required in the previous versions of ChartAlert.


ATTN: This scan is similar to the earlier scan (refer to Example 5: Single Parameter Multiple Inputs), with the exception of the final line (“Set report type to SUMMARY”).


[BEGIN Close crossed above EMA(timeP1)]

Set OptVar timeP1 = 30, 50, 100, 150, 200

List symbols where Close crossed above EMA(timeP1)

Add Column Close
Add Column EMA(timeP1) chart(color=red, lw=2)

Apply to NIFTYTOTAL

[END]

Set report type to SUMMARY

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


Continue reading “Stock Screener – Example 6: Single Parameter Multiple Inputs; Summary Report (“Set report type to…”)”

Stock Screener – Example 5: Single Parameter Multiple Inputs (EMA Crossover)

This is an example of an optimized scan wherein a single parameter or variable can accept multiple inputs thereby replacing the need for writing several scans (as was required in the older versions of ChartAlert); this functionality for the Advanced Scanner will be introduced in September 2023.

1 minute

This functionality will be introduced in September 2023 (Version 23.9.1)

Below is an illustration of an optimized scan that can be created using the Advanced Scanner in ChartAlert.

This one enhanced scan, wherein a single parameter or variable can now accept multiple values or inputs for scanning, now replaces the need for writing six separate scans as was required in the previous versions of ChartAlert.

[BEGIN Close crossed above EMA(timeP1)]

Set OptVar timeP1 = 5,8,13,21,34,55

List symbols where c crossed above EMA(timeP1)

Add Column Close
Add Column EMA(timeP1) chart(color=red, lw=2)

Apply to Nifty100

[END]

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


Continue reading “Stock Screener – Example 5: Single Parameter Multiple Inputs (EMA Crossover)”