I want code for open+20

I want expert advice code to back test my strategy to buy day open+20 and to sell for day open - 20

hElLO tRaDeR,

If your question is related to tradescript:

Tradescript recognizes only candlestick conditions to give you trade alerts for entry and exit.

There is no function in Tradescript language to define backtest conditions based on specific times of the day.

Here is an example on which you can start defining your trading strategy:

http://tradingqna.com/46314/coding-with-moving-average