New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.
Scanning for keltner Channel cross
I would like to scan to see if today's close exceeded the lowest upper keltner channel over the past 20 days. Can anyone provide how to put this in the scan engine?
0
Comments
Here's a link on writing min and max scans.
https://support.stockcharts.com/doku.php?id=scans:advanced_scan_syntax:min_max_scans
and a link on all functions available
https://support.stockcharts.com/doku.php?id=scans:functions
So, for the min function, you add the lookback period first, and the data item second
and [close > min(20, Kelt...) // I forget Kelt syntax
If you want the first time the close crosses, use the crossover operator "x"
and [close x min(20, Kelt...) // I forget Kelt syntax