What is the code for ' BUY or SELL if price moves upwards or downwards by 50 paise or one rupee'?

If the price is 100 rupees and the change should be 50 paise. Depending on it I shall trade from renko and heikin ashi charts.

you can use price alert indicator, check the below code from Expert Advisor page