Pivot+Supertrend strategy

Is it possible to write an algo for the following condition:

The close value (say 1 min candle chart) touches R1 pivot resistance and reverses. On the way of reversal, it comes below supertrend. That should be the entry point.

@Market_Monarchs Check out the image below to learn how to create the conditions:

You can refer to the strategy link as well: Streak | World's first algo trading platform without coding