Need trade script coad

tim=input(‘160’)

out1 = security(tickerid, tim, open)

out2 = security(tickerid, tim, close)

longCondition = crossover(security(tickerid, tim, close),security(tickerid, tim, open))

if (longCondition)

strategy.entry("long", strategy.long)

shortCondition = crossunder(security(tickerid, tim, close),security(tickerid, tim, open))

if (shortCondition)

strategy.entry(“short”, strategy.short)

the above logic is not clear please specify your condition in brief, tickerid, time is not possible in tradescript.