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