Streak - Coding

Hi Team,

Could you please guide on how to code the below requirement on Streak?

I need the code to buy exactly at the high price or low price of a particular candle eg. buy when price hits the high price of the previous candle.

@Streak can you.