Help with scan

Hello everyone, I need help with a scan. I'm looking for four lower wicks. It's kinda like market structure low but I kinda modified it. Then the fifth candle has a higher low, but also would like the inverse of this. Any help would be greatly appreciated
Thank you

Comments

  • That's a long and complicated scan.

    Getting lower lows is easy enough - 1 day ago low is less than 2 days ago low, etc. The higher low for the current candle is just low greater than 1 day ago low (if by "fifth candle" you mean the current one).

    Getting the wicks - you could try testing for both the close and the open above the mid point of the bar. So it would start:

    and [1 day ago close > 1 day ago low + [1 day ago range * .5] ]
    and [1 day ago open > 1 day ago low + [1 day ago range * .5] ]

    Then you would repeat that for each of the other three candles, 2 days ago, 3 days ago, 4 days ago.