Help Needed: Custom 2D/3D Screener in ProRealTime – Syntax Error

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #252413 quote
    njjstocksnjjstocks
    Participant
    New

    Hi everyone,

    I’m trying to build a ProScreener in ProRealTime that scans for conditions on a custom time period, specifically 2-day (2D) or 3-day (3D) candles. However, I keep getting a syntax error when I try to use TIMEFRAME(2 days) or a similar approach.

    Error Screenshot Attached: The error message says: “Syntax error: line X, character XX One of the following characters would be more suitable than ‘2’:

    • ‘minute’, ‘hour’, ‘minutes’, or a timeframe hour (h, hour, hours)”

    Has anyone successfully created a screener or indicator using custom multi-day timeframes (other than 1 day, 1 week, etc.)?

    • Is this possible in the current version?

    • Are there any workarounds for scanning on 2D/3D periods?

    Any help or code examples would be much appreciated!

    Thanks in advance for your advice.

    Screenshot-2025-10-09-at-16.28.14.png Screenshot-2025-10-09-at-16.28.14.png
    #252415 quote
    JSJS
    Participant
    Master
    Hi,
    These are the time frames (screenshot) you can use in a screener… A possible workaround is to aggregate the data manually… For a 2-day period, combine the last two daily bars as follows:
    Open of the 2-day bar = DOpen[1]
    High of the 2-day bar = max(DHigh, DHigh[1])
    Low of the 2-day bar = min(DLow, DLow[1])
    Close of the 2-day bar = DClose
    Iván González and robertogozzi thanked this post
    Scherm­afbeelding-2025-10-09-om-18.11.11.png Scherm­afbeelding-2025-10-09-om-18.11.11.png
    #252430 quote
    njjstocksnjjstocks
    Participant
    New
    Thank you JS.  That worked.
    JS thanked this post
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

Help Needed: Custom 2D/3D Screener in ProRealTime – Syntax Error


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
njjstocks @njjstocks Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by njjstocksnjjstocks
11 months, 1 week ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 10/09/2025
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...