Hi @BenTen, i tried to use this quote and scan for the last candle that touches 50SMA, but it does not scan out the results i wanted. May i also know what is the function of displace and how to modify the plot to scan for any candles that touches the 50SMA? Thanks
@Nick You don't need that code to scan for candle crossing the 50 SMA. All you have to do is go to the Scan tab, create a new condition, and set it up where close crosses above, crosses below, or crosses the 50 SMA.
Here is an example:
Make sure to adjust the "length" to your desired moving average length.