I would like to develop a screener that compares the auction price during the auction, with the last traded price before the auction. The purpose is to identify securities where the auction is about to close at a price which is significantly different to the last traded price. Can anyone please assist ?
Maybe you can use this:
Mincap = 1000000*500
timeframe(daily)
cap = average[20](volume*close)
timeframe(default)
for i=0 to 255 do
if intradaybarindex[i]=0 then
LastClose = close[i+1]
break
endif
next
diff = (close-LastClose)/LastClose * 100
screener[cap>Mincap](diff as "%", LastClose as "LastC")
you can add to the screener condition of diff. screener[diff>4 or diff<-4]