Dear ProRealCode Community,
I’ve created a screener, which first looks for matches on the daily chart, and then works with a minute timeframe data.
The trouble is, I can’t make ‘daily’ chart limitations to work properly. For example, I’ve a simple rule, which looks like this:
(Timeframe(1Day)
MA20 = Average[20](close)
GapUp = open > close[1] and open >open[1] and open>MA20)
And I am expecting, that just this simple rule will match stocks like ALEC today and then my screener will conduct further 1 minute checks.
Yet it didn’t work as expected, and when I checked the code against ALEC, I can see that 1 minute rules works just fine, but once I reinstate daily condition – the screener stops working, stops showing matching 1 minute results.
Can someone suggest, what’s wrong with my code? And how should I edit the code, to be able to both check for stocks with GapUp while current open is above MA(20) and then check for conditions on 1 minute timeframe?
It’s correct, apart for the wrong first and last characters (two parentheses).
Thanks, Roberto! Turns out there were another glitch (I couldn’t get screener/indicator to work if my formulas operate with previous days Close no matter how I try) but we got around that limitation also.