Daily “Gap Up” Code Error

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #173017 quote
    Karen
    Participant
    Average

    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?

    #173020 quote
    robertogozzi
    Moderator
    Legend

    It’s correct, apart for the wrong first and last characters (two parentheses).

    Karen thanked this post
    #173045 quote
    Karen
    Participant
    Average

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Daily “Gap Up” Code Error


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Karen @karen Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Karen
5 years, 2 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 07/02/2021
Status: Active
Attachments: No files
Logo Logo
Loading...