Máximos y Mínimos

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #224739 quote
    Ggmq
    Participant
    New

    Buenos días,

    Me gustaría saber si ya existe un indicador como el de la figura adjunta, que dibuje los máximos y mínimos de las crestas y valles de precios.

    Yo no lo he encontrado en el FORO.

    Si no existe, podría realizar el código del indicador.

    Muy agradecido por su trabajo de antemano.

    Saludos,

    #225051 quote
    robertogozzi
    Moderator
    Master

    Ahi esta:

    ONCE P    = 10
    ONCE Flag = 0
    Bullish   = close > open
    Bearish   = close < open
    HH        = max(high,high[1])
    LL        = min(low,low[1])
    SwingUP   = Bullish[1] AND Bearish AND (HH = highest[P](high))
    SwingDN   = Bearish[1] AND Bullish AND (LL = lowest[P](low))
    IF SwingUP AND (Flag <> 1) THEN
       Flag = 1
       DrawText("#HH#",BarIndex[1],HH) coloured("Blue",255)
    ELSIF SwingDN AND (Flag <> -1) THEN
       Flag = -1
       DrawText("#LL#",BarIndex[1],LL) coloured("Red",255)
    ENDIF
    RETURN

    Veo otras líneas y objetos en el gráfico, pero no sé si son parte del indicador que solicitaste.
    Dígame si es necesario cambiar o agregar algo.

    #225080 quote
    Ggmq
    Participant
    New

    Gracias Roberto por tu aportación.

    robertogozzi thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Máximos y Mínimos


ProBuilder: Indicadores y Herramientas

New Reply
Author
author-avatar
Ggmq @ggmq Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Ggmq
2 years, 2 months ago.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 12/03/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...