Simple code help

Can anyone please tell me code for zerodha Pi alert

Buy : Last day price + today’s x price

if yesteday price was Rs 100 + Rs 5

Similarly for sell trade-

if yesteday price was Rs 100 - Rs 5

Thanx

These Conditions are not code-able for generating Pi Alerts.

Please Read this Thread to get some insight on what is possible