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)

1 minute

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