Entry Condition Price Cross (last two days high+ its .2%)

Plz suggest what will be the code for following entry condition…

take buy entry when price crosses (last two days high+ its .2%)

Order will active at 0920 hrs daily and valid for the day . If condition not met then trade would not initiate. Order type will be NRML.

Use Entry Condition-
LTP > position (highest high of Day candle, last 2 days) + 0.02*(position (highest high of Day candle, last 2 days) )