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 Boliart
    Participant
    New

    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

    #218579 quote
    Nicolas
    Keymaster
    Master

    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 Boliart
    Participant
    New

    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.

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 Boliart
2 years, 6 months ago.

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