Ema3 cruce con ema9

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #209744 quote
    PatrickgarridooPatrickgarridoo
    Participant
    New

    Alguien sabria hacer un indicador que ema3 sea de color verde pero cuando cruce con ema9 en el grafico ema3 cambie de color solo el cruce a color amarillo y despues del cruce vuelva a su color verde

    #209748 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    ¡Hola!

    Ema3 puede ser verde o amarillo a cada cruce por ejemplo de esta manera:

    ema3= ExponentialAverage[3](close)
    ema9= ExponentialAverage[9](close)
    
    if ema3 crosses over ema9 or ema3 crosses under ema9 then
    red=255
    else
    red=0
    endif
    
    return ema3 coloured(red,255,0) as "ema3", ema9 as "ema9"
    MiguelAngelMartinez thanked this post
    #209775 quote
    PatrickgarridooPatrickgarridoo
    Participant
    New

    muchas gracias eso era lo que buscaba, pero no se como podria poner el verde color 155 sin cambiar el amarillo ya que se cambia todo. Un saludo

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

Ema3 cruce con ema9


ProBuilder: Indicadores y Herramientas

New Reply
Author
Summary

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

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