There is a regression channel indicator (Shaff) in Pi. Can the touch downs on both channel extremes can be coded to provide alerts.
schaff trend cycle is the indicator available in pi under study it is not possible to code it in tradescript language