Coding about the intraday trading

Can anyone plz tell me the coding for intraday trading. ?? With following conditions :- 1) the stock has moved 10 points up from the opening price and is performing upward trend. ? 2). The stock have moved 10 points down ward from the opening price and is performing downward trend? The code should only be for intraday only I.e the present day only . Thank you

For the above condition it is not possible to code based on percentage with reference to candle opening for intraday with tradescript.