Can you please help me to write code for the following

Can you please help me to write code for the following
5 ema indicator
30 minutes candlestick
Condition- 30 minute candle low should not touch 5 ema, then if next candle crosses low of that candle, sell it
Stop loss above that crossed candle.
Target 1:1.2

For buying opposite conditions

Hi @Kasi_Reddy

I have created a condition as per my understanding of your requirement. Refer to the below image to view the strategy conditions.

The above conditions are for your Sell requirement. Similarly, you can create conditions for your buying strategy by reversing the conditions and following a similar approach.

Also, it should be noted that the entry and exit triggers will be generated only after the closing of the candle and not on an LTP basis. This is because Streak uses OHLC data to calculate the indicator values and this data is only available after a candle closes. Thus, trigger will be sent only after the closing of the candle matching your conditions.

I hope this helps.