Limit order for entry

Hi, i have a option buying algo, in that i want to put Limit buy order in auto live, i want to trigger buy when wprice is 10% lower from LTP