ProScreener. Prolongación de Soporte en Pivot Trendlines with BreaksHG

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #261951 quote
    Maricarmen
    Participant
    Veteran

    Buenas Tardes:

    Sería posible confeccionar el Screener que recogiese la prolongación del soporte de la imagen que proporciono ( en realidad es la misma). Lo que pasa es que una recoge el Soporte en una Linea Roja con continuación en puntos en rojo.

    Y la otra esta toda como si fuese una Linea discontinua Verde, en esta pido lo mismo, lo que ocurre es que la prolongación se proyectaría a partir del toque al segundo soporte. Soy consciente que tienen que pasar unas pocas velas para que el gráfico recoja dicha Linea.

    Me estoy refiriendo al indicador: https://www.tradingview.com/script/0ecaiSnU-Pivot-Trendlines-with-Breaks-HG/

    Muchísimas Gracias.

    SABADELL-15´-1.png SABADELL-15´-1.png SABADELL-15.png SABADELL-15.png
    #261988 quote
    Iván González
    Moderator
    Legend

    Buenas. Aquí tienes un buscador que localiza valores cercanos a la linea de tendencia.

    //----------------------------------------------
    //PRC_Pivot Trendlines with Breaks - Screener
    //version = 1
    //15.06.2026
    //Ivan Gonzalez @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    //----------------------------------------------
    // Vela cerca de la prolongacion del soporte ascendente (pivots low).
    //----------------------------------------------
    
    PivotLen = 20
    repaint  = 0
    tolPct   = 0.3    // tolerancia de cercania, en % del precio
    
    //--- Pivots low
    IF low[repaint*PivotLen+1] = lowest[repaint*PivotLen+PivotLen+1](low) THEN
       $ply[z] = low[repaint*PivotLen+1]
       $plx[z] = barindex-(repaint*PivotLen+1)
       z = z+1
    ENDIF
    
    y2 = $ply[max(z-1,1)]
    x2 = $plx[max(z-1,1)]
    y1 = $ply[max(z-2,1)]
    x1 = $plx[max(z-2,1)]
    xl = barindex
    yl = y1+(xl-x1)*(y2-y1)/(x2-x1)
    
    //--- Soporte ascendente vigente + vela cerca de la linea, sin haberla roto
    ascending = y2 > y1
    tol       = close*tolPct/100
    nearLine  = abs(low - yl) <= tol
    aboveLine = close >= yl
    
    SCREENER[ascending AND nearLine AND aboveLine](yl AS "Soporte", low AS "Minimo", close AS "Cierre")
    


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

ProScreener. Prolongación de Soporte en Pivot Trendlines with BreaksHG


ProScreener: Buscadores de Mercado y Rastreo

New Reply
Author
author-avatar
Maricarmen @maricarmen Participant
Summary

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

Topic Details
Forum: ProScreener: Buscadores de Mercado y Rastreo
Language: Spanish
Started: 06/14/2026
Status: Active
Attachments: 2 files
Logo Logo
Loading...