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…”)”