More unexpected returns !

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #218296 quote
    sgrech
    Participant
    Junior

    ma=average[20](close)

    timeframe(monthly)
    m1=ma>1

    timeframe(weekly)
    w1=ma>1

    timeframe(daily)
    d1=ma>1

    SCREENER [m1 and w1 and d1]

    Should variable ma=average[20](close)
    be positioned within the relevant timeframe(s) or can it be situated at the top of the code outside of the timeframes?

    #218309 quote
    JS
    Participant
    Veteran

    This allows you to display the different averages in the graph with the lowest time frame…

    timeframe(daily)

    ma=average[20](close)

    timeframe(weekly)

    ma1=average[20](close)

    timeframe(monthly)

    ma2=average[20](close)

    Return ma, ma1, ma2

    This allows you to screen whether the “close” (lowest time frame) is larger than the different average:

    timeframe(daily)

    C1=Close>average[20](close)

    timeframe(weekly)

    C2=Close>average[20](close)

    timeframe(monthly)

    C3=Close>average[20](close)

    Screener[ c1 and c2 and c3]

    Scherm­afbeelding-2023-07-30-om-10.54.39.png Scherm­afbeelding-2023-07-30-om-10.54.39.png
    #218325 quote
    sgrech
    Participant
    Junior
    
    ma=average[20](close)
    
    timeframe(monthly)
    m1=ma>1
    
    timeframe(weekly)
    w1=ma>1
    
    timeframe(daily)
    d1=ma>1
    
    SCREENER [m1 and w1 and d1]
    
    or
    
    
    
    timeframe(monthly)
    ma=average[20](close)
    m1=ma>1
    
    timeframe(weekly)
    ma=average[20](close)
    w1=ma>1
    
    timeframe(daily)
    ma=average[20](close)
    d1=ma>1
    
    SCREENER [m1 and w1 and d1]
     
    #218328 quote
    JS
    Participant
    Veteran

    What do you mean by “ma>1″…?

    The moving average (ma) is always greater than 1…

    #218347 quote
    sgrech
    Participant
    Junior
    “The moving average (ma) is always greater than 1…” The condition being tested is not really of importance here, rather I am seeking clarification as to whether the indicator (in this case average[20](close)) can be positioned once above the timeframe() coding or within each timeframe seperately?
    #218348 quote
    JS
    Participant
    Veteran

    I’ve already shown you that…

    timeframe(daily)

    C1=Close>average[20](close)

    timeframe(weekly)

    C2=Close>average[20](close)

    timeframe(monthly)

    C3=Close>average[20](close)

    Screener[ c1 and c2 and c3]

    sgrech thanked this post
    #232565 quote
    sgrech
    Participant
    Junior
    Long break i know…. I’ve already shown you that… with respect you didn’t Can your code above be rewritten thus   ma20=average[20](close) timeframe(daily) C1=Close>ma20 timeframe(weekly) C2=Close>ma20 timeframe(monthly) C3=Close>ma20 Screener[ c1 and c2 and c3] Thanks in advance
    #232566 quote
    robertogozzi
    Moderator
    Master
    be positioned within the relevant timeframe(s) or can it be situated at the top of the code outside of the timeframes?
    code placed outside of the timeframes is considered part of the default timeframe, same as inside the timeframe(default).
    sgrech thanked this post
    #232580 quote
    sgrech
    Participant
    Junior
    code placed outside of the timeframes is considered part of the default timeframe, same as inside the timeframe(default).
    Thanks Roberto the clarifies things somewhat although with regards to the timeframe(default), how do I know what this is – if that isn’t a daft question?
    #232581 quote
    JS
    Participant
    Veteran

    The timeframe of the graph is the “default timeframe” …

    When it comes to a screener, the “default” timeframe” is the “period” you can set in the ProScreener window…

    Scherm­afbeelding-2024-05-12-om-14.40.05.png Scherm­afbeelding-2024-05-12-om-14.40.05.png
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.

More unexpected returns !


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
sgrech @sgrech Participant
Summary

This topic contains 9 replies,
has 3 voices, and was last updated by JS
1 year, 10 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 07/29/2023
Status: Active
Attachments: 2 files
Logo Logo
Loading...