Changing colour of an indicator line.

Forums ProRealTime English forum ProBuilder support Changing colour of an indicator line.

Viewing 3 posts - 1 through 3 (of 3 total)
  • #18650

    Hi Nicolas,

    Love the site.

    I am using 10.2

    I wondered if it is possible to:

    a, change the colour of an indicator line if certain conditions occur?

    b, I have set up that work in multiple time frames, is there any way to code one timeframe result into another timeframe?(I.E the result of a 1664 tick chart into a 39 tick chart)

    Many thanks,

     

    Bert

     

    #18659

    To change the line colour, you can defined a new variable named “mycolor” (for example).

    Test if a bullish condition occurred, if true then set “mycolor” to 1 , if it’s a bearish condition set it to -1:

    Let’s say that the returned value of your indicator is called “myvalue”, then let’s write your return line like this:

    Then, just set the appropriate colours you’d like to bearish/bullish condition in the indicator’s parameters window (screenshot attached).

    That’s all! Let us know if everything’s doing well 🙂

     

    #18666

    Thanks, I will give it a go.

    B

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

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