need a code for pi scanner

some body please help me to create a scanner in pi

stock must be in F&O and
buyers should be 150% more than sellers and vice versa

These conditions cannot be coded on Tradescript.