I need code for my orb stratergy

I need code for following stratergy and also pls guide how to back test it on pi. Crude oil.identify the high and low at 12pm.buy above high with target 10 points and stop loss 10 points.in the same way sell below low with same target and sl.

For Back-testing go to Pi -> Alerts ->Backtest

and enter the buy and sell script and specify symbol and chart details and backtest it.
As per your given condition use day charts

Buy Script:

LAST>REF(HIGH,1)

Sell Script:

LAST<REF(LOW,1)

target

LAST>REF(HIGH,1)+10

StopLoss

LAST>REF(HIGH,1)-10

Dear algo
Im not taking previous day high and low…i want the high and low of present day at 12 pm.and trade once it crosses the high or low.also one trade per day.pls guide