I think this type of code will work for pivot breakout but its not working in backtesting, can any one suggest the changes.
aim is to get an alert when LTP is crossing pivot point. so if its going up through pivot line then buy signal and if going down through pivot line then sell signal.
SET PVT = (( REF(HIGH,1) + REF(LOW,1) +REF(CLOSE,1) ) / 3.0)
LAST > PVT
This is working but needs some correction. I will update.