Need PI purchase and sale script

@nithin @siva

Sir I want a script. I want to trade from PI
Buy: Purchase “NIFTY 21 MAY 10000 CE” (OPTIONS) (example) if NIFTY (INDEX) below 25
Sell: purchase price + 3%

How can I execute?

@AlgoGeek Can you.

above conditions are price-based and it is not possible in pi, you create alerts easily using
refer the below screenshot, i have created sentinel alert exactly to the above conditions

also you can read more here

I’m really sorry sir. I forgot to add RSI
Buy option if index RSI falls below 25
Exit :purchase price +3%

replied here, also price based conditions with placing orders not possible in pi