Need Streak Strategy Codes for EMA(5)-EMA(30) gaps comparison

Need Help for below Coding Strategy in Streak.
Long Entry:
EMA(5)-EMA(30) gap is Lowest compared to Last 10 Candle Gaps of EMA(5)-EMA(30)

Long Exit :slight_smile:
EMA(5)-EMA(30) gap is Highest compared to Last 10 Candle Gaps of EMA(5)-EMA(30)

i tried my best, but all coding strategy giving wrong results using Min, Max, Period Min, Period Max, Simple comparison of Gaps. Need Help to write accurately

@Streak can you

Hi @Niraj_Singh2

Kindly note that we have shared a strategy link created as per your requirements based on our understanding.
https://www.streak.tech/strategy/101322

You can make necessary changes at your discretion.

Hope this helps.

1 Like

@Streak Thanks. Got it.

Is it possible to give code for below condition.

  1. Volume(0) is minimum of Previous 12 Candles, Considering only where Candle is Red, ignoring Green Candles in the range of Previous 12 Candles.

Best Rgds

Hi @Niraj_Singh2

Your requirements to consider only red candle volume in the previous 12 candles cannot be implemented.