Looked at the prorealcode archive but cant see a simple way to do the below
Date 1: 24/05/2024
Date 2 : 04/01/2024
Indicator = % change in price between date 1 and Date 2
Screener = Indicator > 30%
Any suggestions please?
It could be like this:
startdate=20240104
n=barssince(startdate=date)
finaldate=20240520
m=barssince(finaldate>=date)
if m>0 and n>0 then
spread=close[max(0,m-1)]-close[max(0,n)]
indicator=spread/close[max(0,n)]*100
endif
screener[indicator>30](indicator as "%")
Hi,
something like that? (to be used with “daily” selected in the screener window’s right side)
date1=20240524
date2=20240104
if opendate=date1 then
close1=close
endif
if opendate=date2 then
close2=close
endif
indi=close1/close2-1
selection= indi>0.3
SCREENER[selection](indi as "indi")
Ivan was faster, as Roberto says: “two replies better than one”