EMA entry and R1 exit code

@Streak can you please help me with a code. I want entry when the current candle crosses above EMA20 and the close price and EMA20 should be higher than EMA200. Also, the exit should be the R1 line.

Thanks in advance.

Hi @Aayush_Chauhan247

I have created a sample strategy for your requirement. Click on the below link to view the conditions.

hope this helps.