incluir en indicador macd el mínimo o máximo del macd

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #218574 quote
    Marc BoliartMarc Boliart
    Participant
    Junior

    Hola buenos días,

    Cual sería el código para que en un rango de X PERIOD … me pueda dibujar el mínimo/máximo del MACD en el propio indicador ??? para que no deba tirar rayas¿

    Muchas gracias y buenas vacaciones

    Marc

    macd-min-max.png macd-min-max.png
    #218579 quote
    NicolasNicolas
    Keymaster
    Legend

    Para hacer esto, debe crear un indicador personalizado, así que aquí está el código a continuación. Te dejo cambiar los colores a tu gusto.

    period = 20
    
    a = MACD[12,26,9](close)
    b = MACDline[12,26,9](close)
    c = MACDSignal[12,26,9](close)
    
    hh= highest[period](b)
    ll=lowest[period](b)
    
    return 0,a style(histogram),b,c,hh,ll
    
    Marc Boliart thanked this post
    #218582 quote
    Marc BoliartMarc Boliart
    Participant
    Junior

    gracias Nicolas! Era mucho más sencillo de lo pensado

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

incluir en indicador macd el mínimo o máximo del macd


ProBuilder: Indicadores y Herramientas

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Marc BoliartMarc Boliart
3 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 08/04/2023
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...