Indicator for candle color green/red if close above/below EMA

Forums ProRealTime English forum ProBuilder support Indicator for candle color green/red if close above/below EMA

Viewing 8 posts - 1 through 8 (of 8 total)
  • #203640
    umd

    Hi, Is there an indicator in prorealtime (as shown in below picture)?

    It print green candles when close above EMA line, and red candles when close below EMA line.  All candles will be either green or red.

    EMA line also changes color green/red, depending on bar close above/below EMA line.

    Does anyone have this indicator please?  I use this on Tradingview charts, seems simple, but can’t find on prorealtime.

    Thanks

    #203666

    There you go:

     

    1 user thanked author for this post.
    avatar umd
    #203709
    umd

    There you go:

    Thanks for reply.  The above code is showing error “The following variable is undefined: Periods, Type”

    #203711
    umd

    There you go:

    Thanks for reply. The above code is showing error “The following variable is undefined: Periods, Type”

    Thanks a lot @robertogozzi, it works now.

    #203714

    Sorry, I forgot to post a couple of lines with the two settings:

    I’m glad you could find a solution.

    1 user thanked author for this post.
    avatar umd
    #203734
    umd

    Sorry, I forgot to post a couple of lines with the two settings:

    I’m glad you could find a solution.

    Thanks again robertgozzi. It works good, I appreciate your reply.

    #213091

    How can i draw a green candle if the indicator condition is true and red when indicator condition is fale. Its based on Weekly and daily data, and I intend to load it in 15m chart.

    here is the code,

     

    #213128

    I tested this slightly modified version, which works like a charm:

    I replaced DTOSC with SMAs, as I don’t have it installed.

     

Viewing 8 posts - 1 through 8 (of 8 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login