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)