Return default time frame

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #207886 quote
    JayDJayD
    Participant
    Junior

    Am doing a screener where I want to change a parameter depending on the time frame. For example:

    if TIMEFRAME(default)=TIMEFRAME(daily) then
    x=5
    else
    x=1
    endif

    Is there a way to read (return) the default time frame?

    Thanks.

    #207896 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    GetTimeframe does the job (https://www.prorealcode.com/documentation/gettimeframe/) , but NOT for screeners. It’s availbale for indicators and strategies only, so you’d have to compare the time from one bar to next one with some math.

    JayD thanked this post
    #207916 quote
    JayDJayD
    Participant
    Junior

    Thanks Roberto.

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

Return default time frame


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
JayD @jayd Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by JayDJayD
3 years, 8 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 01/22/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...