How do I create a code for following?

A = Last Transaction Price by me

Buy if the lowest ASK price is less than 0.9x A

Sell if the highest BID price is greater than 1.1xA

Can not define bid price and ask price in tradescript. so, it is not possible to code as per the above condition.