Protein + Screener

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

    Se podría hacer un Screener de este indicador que detectase soportes, tales como doble suelo u otros.

    https://www.tradingview.com/script/FWr6AkTm-UST-Protein/

    Gracias.

    #249059 quote
    Iván González
    Moderator
    Master

    Buenas. Este código detecta valores cuyo último mínimo relevante acaba de generar un doble suelo.

    prd=25
    th=1
    
    PivotLowDetected=low[prd]=lowest[2*prd+1](low)
    
    if PivotLowDetected then
       
       pl2y=pl1y
       pl1y=low[prd]
       
       if pl1y>pl2y*(100-th)/100 and pl1y<pl2y*(100+th)/100 then
          dobleSuelo=1
       else
          dobleSuelo=0
       endif
    endif
    
    screener[dobleSuelo]
    

    A partir de aquí puedes pedirle lo que quieras adicional, como que la vela actual esté tocando el soporte generado, a una distancia x, o lo que sea.
    Te pongo un ejemplo en el que actualmente el precio está cruzando a la baja el punto medio del soporte generado.

    prd=25
    th=1
    
    PivotLowDetected=low[prd]=lowest[2*prd+1](low)
    
    if PivotLowDetected then
       
       pl2y=pl1y
       pl1y=low[prd]
       
       if pl1y>pl2y*(100-th)/100 and pl1y<pl2y*(100+th)/100 then
          dobleSuelo=1
       else
          dobleSuelo=0
       endif
    endif
    puntoMedio=(pl1y+pl2y)/2
    screener[dobleSuelo and low crosses under puntoMedio]
    
    robertogozzi thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Protein + Screener


Soporte ProScreener

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
6 months, 1 week ago.

Topic Details
Forum: Soporte ProScreener
Language: Spanish
Started: 07/23/2025
Status: Active
Attachments: No files
Logo Logo
Loading...