some help please,
i m trying to proscreen stocks with the following formula with simplified creation to
show me the stocks that turned from red to green dot on candlesticks:
close(1)<SAR[0.02,0.02,0.2](1)(Daily)
close>SAR[0.02,0.02,0.2](Daily)
and the proscreen does not give me the correct list of stocks.
what am i doing wrong?
thank you.
Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read. Thank you 🙂
There are several errors:
- (1) after CLOSE and after SAR at line 1 need to be replaced by [1]
- (Daily) at the end of both lines is incorrect and meaningless, why did you use it?
of course the result of all the above conditions need to be assigned to a variable:
c1 = close[1]<SAR[0.02,0.02,0.2][1]
c2 = close>SAR[0.02,0.02,0.2]
but if the previous candle CLOSE was below SAR and now it’s above, then there’s been a crossover, which can be written with just one line:
c1 = close CROSSES OVER SAR[0.02,0.02,0.2]