timeframe(default)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #255368 quote
    sgrechsgrech
    Participant
    Junior

    I have read a few posts regarding the timeframe(default) function and even resorted to asking AI but I am still left confused.  Specifically when, when creating a screener (many of which are based on multi timeframes) do I need to use this function.  If someone could explain in very simple english that we could be much appreciated.

    #255370 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    The default timeframe, written as:

    Timeframe(default)

    is the timeframe on your chart, whatever it is.

    In a multi-timeframe code, all the bigger timeframes used MUST be a multiple of the deafault timeframe, i.e. if the default timeframe is 1-minute, the bigger timeframes can be 1, 2, 3, 4, 5, 6, 10, 15 20 minutes or 1, 2, 4, 8 hours, Daily etc…, if your default timeframe is, say, 7 minutes you will hardly find a multiple timeframe as it should be 14 or 28 or 56 or 112 minutes, etc…

    The bigger timeframes can be written in two ways, in Indicators and automated Strategies (mode 2 and 3 being equivalent):

    // 1
    Timeframe(Weekly,UpdateOnClose)
    
    // 2
    Timeframe(Weekly,default)
    
    // 3
    Timeframe(Weekly)

    while Screeners only support mode 3 .

    UpdateOnClose means that indicators and variables are to be updated when the bar closes (so in a 1-hour timeframe, once per hour).

    Default means that indicators and variables are to be updated when the bar of the default timeframe closes (so in a 1-hour timeframe, but using a 1-minute default timeframe, data are updated every minute).

    Iván González thanked this post
Viewing 2 posts - 1 through 2 (of 2 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

timeframe(default)


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
sgrech @sgrech Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
8 months ago.

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