Tradescript error

SET A= Ref(LAST,0)
IF(LAST=A+3,1,-1)

can anybody tell if anything is wrong with this code ??

first explain what you want to do

create alert when last traded price moves up by 3 rs…