Scan Example #8
Add Column BarsSince(pattern is new High) as XBars
Add Column Highest Value Since(Close has crossed above EMA(200), Close) as CloseSinceXover
Apply to Nifty
This Scan will list the number of trading bars that have passed since a Symbol registered a new High, under a column header titled "XBars".
This Scan will also list the Highest Value of Close that has been registered by a Symbol, under a column header titled "CloseSinceXover", since a particular event happened.
In this case, the event is Close having crossed above its 200-bar Exponential Moving Average (EMA).
The Scan will be applied to all Nifty Symbols.