Code is required please help me

I just need a code for automating this strategy. help me how to achieve this.
RSI:
Period - 5 days
Level - 70 high
30 Low
Whenever 70 cross- up Buy
Whenever 30 Cross-down Sell
Time frame 1 minute

Buy triggered immediately Sell SL-Limit order should place adding 1 rupee profit at CMP.
Sell triggered immediately Buy SL-Limit order should place adding 1 rupee profit at CMP.

Thanks

i can help you [email protected]