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)

1–2 minutes

This functionality was introduced in October 2023 (Version 23.10.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)

1–2 minutes

This functionality was introduced in October 2023 (Version 23.10.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)

1–2 minutes

This functionality was introduced in October 2023 (Version 23.10.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)

1–2 minutes

This functionality was introduced in October 2023 (Version 23.10.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

1–2 minutes

This functionality was introduced in October 2023 (Version 23.10.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)

1–2 minutes

This functionality was introduced in October 2023 (Version 23.10.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)”

Stock Screener – Example 4: Multiple Scan Blocks (like a screener)

This is an example of an optimized scan that demonstrates using “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)

1–2 minutes

This functionality was introduced in October 2023 (Version 23.10.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 maintaining two separate scans as was required in the previous versions of ChartAlert.

These Multiple Scan Blocks actually function 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.

[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]

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


Continue reading “Stock Screener – Example 4: Multiple Scan Blocks (like a screener)”

Stock Screener – Example 3: Multiple Time-Frame; Merged Report (“Set periodicity to…”) (“Set report type to…”)

This is an example of an optimized scan that demonstrates the enhanced “Set periodicity to…” and “Set report type to…” functions; it can replace the need for writing several scans (as was required in the older versions of ChartAlert)

1–2 minutes

This functionality was introduced in October 2023 (Version 23.10.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 four separate scans as was required in the previous versions of ChartAlert.


ATTN: This scan is an identical copy of the earlier scan (refer to Example 2: Multiple Time-Frame (“Set periodicity to…”)), with the exception of the final line (“Set report type to MERGED”).


[BEGIN RSI(14) crossed above 70 - Interval]

Set OptVar Interval = Daily, Weekly, Monthly

List symbols where RSI(14) crossed above 70

Add Column Close
Add Column RSI(14) chart

Apply to NIFTY500

Set periodicity to Interval

[END]

Set report type to MERGED

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


Continue reading “Stock Screener – Example 3: Multiple Time-Frame; Merged Report (“Set periodicity to…”) (“Set report type to…”)”

Stock Screener – Example 2: Multiple Time-Frame (“Set periodicity to…”)

This is an example of an optimized scan that demonstrates the enhanced “Set periodicity to…” function; it can replace the need for writing several scans (as was required in the older versions of ChartAlert)

1–2 minutes

This functionality was introduced in October 2023 (Version 23.10.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 three separate scans (for daily, weekly and monthly time-frames) as was required in the previous versions of ChartAlert.

[BEGIN RSI(14) crossed above 70 - Interval]

Set OptVar Interval = Daily, Weekly, Monthly

List symbols where RSI(14) crossed above 70

Add Column Close
Add Column RSI(14) chart

Apply to NIFTY500

Set periodicity to Interval

[END]

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


Continue reading “Stock Screener – Example 2: Multiple Time-Frame (“Set periodicity to…”)”

Stock Screener – Example 1: Multiple Segments (“Apply to…”)

This is an example of an optimized scan that demonstrates the enhanced “Apply to…” function; it can replace the need for writing several scans (as was required in the older versions of ChartAlert)

1–2 minutes

This functionality was introduced in October 2023 (Version 23.10.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 four separate scans as was required in the previous versions of ChartAlert.

[BEGIN close>superT(10,3) - IndexNames]

Set OptVar IndexNames = Nifty, Nifty100, Nifty200, Nifty500

List symbols where c crossed above supertrend(10,3)

Add Column Close
Add Column SUPERTREND(10,3) chart

Apply to IndexNames

[END]

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


Continue reading “Stock Screener – Example 1: Multiple Segments (“Apply to…”)”