High break conditions

Please help me create this strategy in Streak

chart- options
Entry- 3 consecutive green candles which are higher than SMA 50
Buy when the high of the 3 green candles gets broken.

TP- 20%
SL- 10%

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

We have assumed that the highest high of the three green candles gets broken in any of the next two candles. You can assume more number of candles needed to break the highest high by adjusting the offset.