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
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