Nuevos maximos o minimos

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #250951 quote
    Chema34
    Participant
    Average

    Buenos días, necesitaría un screener a 15 minutos, que me indicase si en la sesión de hoy ha habido un cierre superior a los máximos de ayer, o si lo hubo ayer con respecto a los de antes de ayer. Y al viceversa para los mínimos.

    Seria posible?

    Muchas gracias

    #250964 quote
    robertogozzi
    Moderator
    Legend

    Aquí está, pero no entiendo qué quieres decir con la frase “o si lo hubo ayer con respecto a los de antes de ayer“:

    CierreDeHoy    = Dclose(0)
    MaximosAyer    = Dhigh(1)
    MinimoAyer     = Dlow(1)
    CondicionLarga = (CierreDeHoy > MaximosAyer)
    CondicionCorta = (CierreDeHoy < MinimoAyer)
    Cond           = 0
    IF CondicionLarga THEN
       Cond        = 1
    ELSIF CondicionCorta THEN
       Cond        = 2
    ENDIF
    SCREENER[Cond](Cond AS "1=Long, 2=Short")
    Iván González thanked this post
    #250968 quote
    JS
    Participant
    Master

    ¿Te refieres a esto…?

    Signal=0
    
    If Close>DHigh(1) then
    Signal=1
    ElsIf DHigh(1)>DHigh(2) then
    Signal=2
    ElsIf Close<DLow(1) then
    Signal=-1
    ElsIf DLow(1)<DLow(2) then
    Signal=-2
    EndIf
    
    Screener[Signal<>0](Signal as "Signal",Signal=1 as "Close>Dhigh(1)",Signal=2 as "DHigh(1)>Dhigh(2)",Signal=-1 as "Close<DLow(1)",Signal=-2 as "DLow(1)<DLow(2)")
    Iván González thanked this post
    Scherm­afbeelding-2025-09-16-om-22.35.53.jpg Scherm­afbeelding-2025-09-16-om-22.35.53.jpg
    #250970 quote
    Chema34
    Participant
    Average

    Gracias por la respuesta Nicolas. Me refiero a que también  me valdría que hubiese roto los máximos de D-2 en D-1. Es decir, que la condición que escribes, se diese hoy o ayer

    gracias

    #250971 quote
    Chema34
    Participant
    Average

    Por otra parte, esto funcionara con los cierres a 15 minutos? gracias

    #250975 quote
    Iván González
    Moderator
    Legend

    Hola. Sería algo así:

    timeframe(daily)
    
    maxayer=high[1]
    maxantesayer=high[2]
    
    setupMaximos=close>maxayer or close[1]>maxantesayer
    
    timeframe(default)
    
    screener[setupMaximos]
    robertogozzi thanked this post
Viewing 6 posts - 1 through 6 (of 6 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

Nuevos maximos o minimos


ProScreener: Buscadores de Mercado y Rastreo

New Reply
Author
author-avatar
Chema34 @chema34 Participant
Summary

This topic contains 5 replies,
has 4 voices, and was last updated by Iván González
12 months ago.

Topic Details
Forum: ProScreener: Buscadores de Mercado y Rastreo
Language: Spanish
Started: 09/16/2025
Status: Active
Attachments: 1 files
Logo Logo
Loading...