Hi
New to Prorealtime Proscreener.
I have attempted to code a simple screener that filters for weekly closes over the 10ema. But it seems to be picking candidates a week late.
Can someone advise my logic error please?
My ain is to identify stocks with a weekly close above the 10ema that had a weekly open below the 10ema and are at least $1 in value.
Attached is the code logic and and example of a stock picked a week late.
thanks
I think it’s beacuse you have subscribed to free end-of-day data, so it’s 1 day late or 1 week late, depending on your TF.
Thanks Robert
I dont understand that. If I run a scan now, the week just gone has ended. Why would it look back a further week?
Yes, now charts have been updated.
Would you mind posting the code written by PRT? There’s something strange in the second line: close >= 1 (weekly).
I just ran the scan again – still a week late.
Could it be that Australia/Asia is not deemed ‘closed’ or is not updated by PRT until later in the weekend than now?
The code:
indicator1 = ExponentialAverage[10](close)
c1 = (close > indicator1)
c2 = (close >= 1)
indicator2 = ExponentialAverage[10](close)
c3 = (open <= indicator2)
SCREENER[c1 AND c2 AND c3] (Variation AS “%Chg prev bar”)
many thanks
My charts are updated.
Australia closes before europe, so your charts should be updated as well, unless there’s some specific unknown reason, such as maintenance.
The code is correct.
PRT are likely to update charts correctly, leaving code one bar late.
Try tomorrow.