INDICADOR MAXIMOS Y MNIMOS

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #236757 quote
    IfontIfont
    Participant
    New

    Buenas tardes,

    Hay el  indicador predefinido de prorealtime  que marca los máximos y mínimos en el gráfico de una manera bastante eficiente. Este indicador no veo la manera de usarlo o insertarlo en el código de programación. ¿Hay manera de crear un indicador que sí funcione y se pueda añadir a los condiciones de entrada  en corto o largo y que se pueda ajustar según número de velas?

    He utilizado el siguiente que ven abajo que he  encontrado en el foro pero da algún tipo de problema y no siempre lo lee correctamente.  Sobretodo cuando añado también el mismo pero calculando los  mínimos.

    //———————Inputs——————————
    lenght = 20
    //—–Calculate pivots high——————————————
    if high < high[lenght] and highest[lenght](high)<high[lenght] and high[lenght]>highest[lenght](high)[lenght+1] then
    $ph[lastset($ph)+1]=high[lenght]
    $phx[lastset($phx)+1]=barindex[lenght]
    endif
    print $ph[max(0,lastset($ph))]
    print $ph[max(0,lastset($ph)–1)]
    print $ph[max(0,lastset($ph)–2)]
    return $ph[max(0,lastset($ph))]

     

     

    Gracias,

    Albert

    #236817 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    ¿A qué indicador ProRealTime te refieres?

    #236841 quote
    IfontIfont
    Participant
    New

    Hola,

    Es éste que adjunto.

    Gracias

     

    Albert.

    Captura-max-min.png Captura-max-min.png
    #236942 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Este indicador es muy similar:

    P  = 5
    N  = 6 * PipSize
    HH = high[1] = highest[P](high)
    LL = low[1]  = lowest[P](low)
    IF HH THEN
       x = high[1]
       DrawText("#x#",Barindex[1],high[1] + N)
    ELSIF LL THEN
       x = low[1]
       DrawText("#x#",Barindex[1],low[1] - N)
    ENDIF
    RETURN
    #236981 quote
    IfontIfont
    Participant
    New

    Grazie! Lo probaré.

Viewing 5 posts - 1 through 5 (of 5 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

INDICADOR MAXIMOS Y MNIMOS


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
Ifont @ifont Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by IfontIfont
2 years, 1 month ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 08/27/2024
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...