timeframe(default)

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

    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
    robertogozzi
    Moderator
    Master

    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.

timeframe(default)


ProScreener support

New Reply
Author
author-avatar
sgrech @sgrech Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
1 week, 2 days ago.

Topic Details
Forum: ProScreener support
Language: English
Started: 01/17/2026
Status: Active
Attachments: No files
Logo Logo
Loading...