Enclosed my code – works well as indicator, but using it for screening purposes it always leads to an error message “Syntax Error line 13, sign 18”. This is the function POW.
Whats wrong?
timeframe (daily)
ONCE firstclose = 0
if barindex = 0 then
firstclose = DClose(0)
endif
rendite = Close[1]/firstclose - 1
if (barindex > 0) then
pot = 365 / barindex
perannorendite = POW(1+rendite,pot) - 1
endif
timeframe(default)
perannorendite = Round(perannorendite *100)
criterium = Volume > 100000 and DClose(1) > 1
SCREENER[criterium] (perannorendite AS "PAR%")
Thx in advance
Roger