Return default time frame

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #207886 quote
    JayD
    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
    robertogozzi
    Moderator
    Master

    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
    JayD
    Participant
    Junior

    Thanks Roberto.

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

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 JayD
3 years, 1 month ago.

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