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)

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