Buy on increasing


Please help me to code in Zerodha PI for the following requirement:

I want to buy a stock when it is increasing by 1%. If its LTP is 100, then buy signal should be generated on 101, 102, 103 and so on.


It can not be coded based on Percentage % with the tradescript