cruce de convergente y divergente MACD

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

    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
    robertogozzirobertogozzi
    Moderator
    Legend

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

    #210332 quote
    MiguelAngelMartinezMiguelAngelMartinez
    Participant
    Junior

    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

    e023c79c6fb73345b4a0d547a2425d75.jpg e023c79c6fb73345b4a0d547a2425d75.jpg
    #210480 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    x-3.jpg x-3.jpg
Viewing 4 posts - 1 through 4 (of 4 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

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 robertogozzirobertogozzi
3 years, 6 months ago.

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