CODE for Intraday trade

Let OPEN price of the day at 9.15 be X

DO only One time( trade only once per day)

{

LONG if the LAST price is greater than the ( X price of the + 0.2% (X))

TARGET if LAST price is greater than the ( X price of the + 0.5% (X))

EXIT long if LAST price is less than the ( X price of the - 0.1% (X))

}

As per the above condition it can not be done automatically with tradescript,

you can define price manually by using price alert indicator