Buy / sell signal coding?

simple buy / sell signal coding ?

for example :-

buy signal when LTP is 4 ticks below ATP ?

sell signal when LTP is 2 ticks above ATP ?

The above condition can not be coded in Tradescript, (ticks can not be defined)

can absolute be defined ?
my request is simple .
for example :-
if dollar sept fut is at LTP 66.30 .
i want to buy at 66.26 and sell at 66.32 .
similar for commodity
is ALUSEPT FUT is at 106.20
i want to buy at 106.00
and
sell at 106.30
i have not even completed a full week of trading .
is this a good strategy ?
how to code it ?