im struggling to figure out how to do this( my scanner game is weak i admit) im learning how to actually set up scanner for different strategies for learning purposes to figure out how to use advanced scanners like TOS and benzinga pro. so im running through different strategies that i found from people on youtube or forums etc. just for practice. but i cant seem to figure out one or two. one is setting up tight (flatline) sideways consolidation that persists for minimum number of days. (i dont see minimum number of days option in any scanner) and also trying to understand the tick count adn number of trades and if that is even possible to set up in those scanners. I tried using AI to generate code for TOS to create number of trades but none of the scripts seem to work. (maybe im not setting it up properly in TOS i dont know yet) still learning.
You can try dividing a fast range with a slow range. If 21 days range is x and 5 days range is y then y / x = 5D range in terms of 21D range. Range is max(source, length) - min(source, length). Source is either close, high or low. You can look for inside candles.
Lookback ? Length ? Period ? Usually it's defined within the built-in function as a parameter. If you take an sma (moving average) function they'll likely ask for 2 inputs: a source and a length. source = close; length = 21 close21_sma = sma(source, length)