cruce de convergente y divergente MACD

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #210194 quote
    MiguelAngelMartinez
    Participant
    New

    Buenas tardes, me gustaría si alguien me podria ayudar a hacer un macd y cuando cruce el MACD Line a la señal se coloree ese cruce de naranja y despues sigua de normal en color verde y la señal en color rojo siempre. Un saludo

    #210278 quote
    robertogozzi
    Moderator
    Master

    ¿Puedes adjuntar una foto para tratar de entender mejor qué necesita ser coloreado y cómo?

    #210332 quote
    MiguelAngelMartinez
    Participant
    New

    espero que con este ejemplo lo entiendas, que se coloree los cruces del MACDline a la señal en color naranja como en la imagen. Un saludo

    #210480 quote
    robertogozzi
    Moderator
    Master

    Ahi esta:

    MySIGNAL = MACDSignal[12,26,9](close)
    MyLINE   = MACDline[12,26,9](close)
    sr = 205
    sg = 38
    sb = 38
    mr = 50
    mg = 205
    mb = 50
    t  = 255
    IF (MySIGNAL CROSSES OVER MyLINE) OR (MySIGNAL CROSSES UNDER MyLINE) THEN
    mr = 255
    mg = 165
    mb = 0
    ENDIF
    Return MySIGNAL AS "Signal" coloured(sr,sg,sb,t) style(line,2),MyLINE as "MACDline" coloured(mr,mg,mb,t) style(line,2)
    MiguelAngelMartinez thanked this post
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

cruce de convergente y divergente MACD


ProBuilder: Indicadores y Herramientas

New Reply
Summary

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

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 02/22/2023
Status: Active
Attachments: 2 files
Logo Logo
Loading...