HMA bi coloured – how to do it

Forums ProRealTime English forum ProBuilder support HMA bi coloured – how to do it

Viewing 4 posts - 1 through 4 (of 4 total)
  • #28713

    Hi guys,
    sorry to bother you again, but as I said in my previous topic (that was the very first one), I am an absolute beginner ….
    I am currently using the Hull Moving Average indicator that I coded after the code which is available in the prorealcode library.
    The code is like this

    as you can see, the line will be visible in the screen as a “white line”, regardless its own trend ..
    It would he nice and helpful if the line could be colored in green, when the HMA is indicating a trend up, while colored in red when indicating a trend down.
    Can you plese help me showing me how to modify the script so that the line shows up green or red according to the trend going on ?

    Thanks again for your help !
    Bye

    #28715
    Hoops … it seems I have made a mess when formatting the topic ….Sorry.
    However I think you can tell the question out of the code :-)))
    Ciao
    #28779

    Firstly, remove the coloured function in the code:

    Then you only need to change the color of the HMA according to its slope (up/down), in the indicator parameters window (attached screenshot).

     

    #28793

    Ciao Nicolas,
    that’s simply great !!!! Thank you so much
    The more I get accustomed to ProRealTime, the more I like it and this is also because of your kind help !

    Have a nice day,

    Mario

     

     

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

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