Tradescript Code for Close Price

Hi,

Please help me with this strategy to code in tradeshift.

Long:
Previous day Close Price - Previous Day Open Price = +
Today Open - Previous Day Close Price = +

Short:

Previous day Close Price - Previous Day Open Price = -
Today Open - Previous Day Close Price = -

Thanks.

Tradescript scan across only intraday time frame.

PREVIOUS DAY’s referencing is not supported.