SCREENER SU PIVOT ANNUALI

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #254037 quote
    massimogp
    Participant
    Senior

    Buon giorno chiedevo due screener con i seguenti parametri:

    a) screener su grafici daily che estragga i titoli che sono su un pivot mese S2 così da monitorare eventuali entrate buy su azioni

    b ) screener su grafici weekly che estragga i titoli che sono su un pivot annuale S2 così da monitorare eventuali entrate buy su azioni

    grazie mille

    #254127 quote
    Iván González
    Moderator
    Legend

    a)screener su grafici daily che estragga i titoli che sono su un pivot mese S2 così da monitorare eventuali entrate buy su azioni

    // Threshold defines the maximum percentage distance to allow detection
    // For example 1 means 1% distance from the S2 level
    threshold = 1
    
    // --- Higher Timeframe Calculation ---
    TIMEFRAME(Monthly)
    
    // We get the High, Low and Close of the previous month
    prevHigh = High[1]
    prevLow = Low[1]
    prevClose = Close[1]
    
    // Pivot Point Calculation (Standard)
    PP = (prevHigh + prevLow + prevClose) / 3
    
    // S2 Support Calculation
    S2Monthly = PP - (prevHigh - prevLow)
    
    // --- Execution Timeframe ---
    TIMEFRAME(Daily)
    
    // Calculate absolute distance in percentage
    distancePercent = ABS(Close - S2Monthly) / Close * 100
    
    // Condition: Price is within the threshold distance
    condition = distancePercent <= threshold
    
    //return PP, S2Monthly coloured("red")
    SCREENER[condition](distancePercent AS "Dist %")
    

    b) screener su grafici weekly che estragga i titoli che sono su un pivot annuale S2 così da monitorare eventuali entrate buy su azioni

    // Threshold defines the maximum percentage distance to allow detection
    // Usually weekly/yearly levels might need a slightly larger threshold
    threshold = 2
    
    // --- Higher Timeframe Calculation ---
    TIMEFRAME(Yearly)
    
    // We get the High, Low and Close of the previous year
    prevHigh = High[1]
    prevLow = Low[1]
    prevClose = Close[1]
    
    // Pivot Point Calculation (Standard)
    PP = (prevHigh + prevLow + prevClose) / 3
    
    // S2 Support Calculation
    S2Yearly = PP - (prevHigh - prevLow)
    
    // --- Execution Timeframe ---
    TIMEFRAME(Weekly)
    
    // Calculate absolute distance in percentage
    distancePercent = ABS(Close - S2Yearly) / Close * 100
    
    // Condition: Price is within the threshold distance
    condition = distancePercent <= threshold
    
    SCREENER[condition](distancePercent AS "Dist %")
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

SCREENER SU PIVOT ANNUALI


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
massimogp @massimogp Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Iván González
9 months, 2 weeks ago.

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 11/28/2025
Status: Active
Attachments: No files
Logo Logo
Loading...