A question to the TIMEFRAME(default)

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #254661 quote
    thomas2004ch
    Participant
    Average

    Hi,

    In the tutorial for ProScreener (Verison 2023), page 14, there si an example:

    TIMEFRAME(weekly)
    Condition1 = Williams[14](Close) < 0 AND Williams[14](Close) > -20
    TIMEFRAME(30 minutes)
    Condition2 = ExponentialAverage[20](Close) CROSSES OVER ExponentialAverage[12](Close)
    SCREENER[Condition1 AND Condition2]

    And: To return to the data of the selected period in the ProScreener interface, we can write :

    TIMEFRAME(default)

    What does “the selected period” mean? The weekly or the 30_minutes?

    #254809 quote
    Iván González
    Moderator
    Master

    timeframe(default) refers to the timeframe you have selected in the screener window.
    When you use this instruction in an indicator or backtest, it refers to the timeframe of the chart you are working with.

    2025-12-29_07-46.png 2025-12-29_07-46.png
    #254815 quote
    thomas2004ch
    Participant
    Average

    must I use the TIMEFRAME(default) at the end of my screener or not?

    #254819 quote
    Iván González
    Moderator
    Master

    Using TIMEFRAME(default) at the end isn’t mandatory, but it depends on what data you want to use to sort your results or if you want to add a last-minute condition.
    Only use it if, after defining specific timeframes (such as Weekly), you want to “return” to the tool’s base timeframe to perform further calculations.

    #254822 quote
    thomas2004ch
    Participant
    Average

    I create an indicator as follow:

    TIMEFRAME(weekly)
    //Condition1 = MACDline[12,26,9](close) > 0 //MACDSignal[12,26,9](close)
    Condition1 = LinearRegressionSlope[3](MACDline[12,26,9](close)) > 0
    TIMEFRAME(daily)
    Condition2 = MACDline[12,26,9](close) crosses over MACDSignal[12,26,9](close)
    //TIMEFRAME(default)
    
    GoLong = Condition1 AND Condition2
    
    if GoLong then
       out = 1
    else
       out = 0
    endif
    
    return out as "Multi TF Long"

    I can insert it in a daily chart. But as I try to insert it in the weekly chart, I got error as shown in attached screenshot.

    tf_error.png tf_error.png
    #254825 quote
    Nicolas
    Keymaster
    Master

    In order to get the indicator calculate correctly, the minimal timeframe data is needed (daily in this case), and it is not possible to get inferior timeframe data when browsing the weekly timeframe, therefore use it on any timeframe equal or inferior to daily.

    Iván González thanked this post
    #254829 quote
    thomas2004ch
    Participant
    Average

    ok, many thanks!

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

A question to the TIMEFRAME(default)


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by thomas2004ch
2 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 12/19/2025
Status: Active
Attachments: 2 files
Logo Logo
Loading...