MACD Histogram Color

Forums ProRealTime English forum ProBuilder support MACD Histogram Color

Viewing 13 posts - 1 through 13 (of 13 total)
  • #172317

    Hi,

    I’m looking for a MACD indicator that changes the Histogram color with reference to the last bar eg. current bar higher than previous bar= green and lower than previous bar= red). I tried downloading the  MACD histogram color indicator but notice that it behaves completely different from  the built-in MACD. I would really appreciate if someone could point me to a solution or alternative indicator if available.

    Thank you

    #172319

    There you go:

     

    #172388

    Thank you Sir. I’ve tried the indicator and noticed that it still doesn’t color  all the bars correctly. I’ve attached a sample screen shot with the default MACD on top and the MACD histogram color at the bottom. I’ve marked some of the bars where the color is off. Really appreciate some help to solve this.

    Best Regards

     

    #172389

    not sure if the attachment went thru earlier

    #172399

    They are ALL correct, as per your request “eg. current bar higher than previous bar= green and lower than previous bar= red“.

    Any bar higher than the previous one is GREEN, otherwise it’s RED.

     

    #172831

    Hi Sir ,

    My apologies for the confusion. What I meant is that if the macd histogram bar is increasing with respect to the last one, it should color the forming bar green. Conversely, if its is declining with respect to the previous bar, then the bar should paint red.

    Regards

    #172833

    If the higher is higher than before it must be green, if the low is lower than before it’s red, is this correct!

    In all other cases what colour should it have?

    To check for ascending and descending prices shall I use CLOSE or HIGH/LOW?

     

    #172984

    Hi Sir, please refer to the attached chart from MT4. I’m trying to get the indicator to do the same in PRT.

    When a bar is above  0  line and increasing in  value ie becoming more postive wrt previous bar, it  should paint green and signal a change to red if  it go lower than previous  bar.

    When a bar is below 0 line and  becoming more negative  wrt previous bar , the bar should paint red. If it’s below o line and becoming more positive wrt last bar, it should paint green.

    #172995

    There you go:

    #173057

    Hi, i tried copying the code into the indicator and am getting strange output as attached.

    MACD_Test

    #173064

    What is strange?

     

    #174226

    Create Variables called ShortTermMA, LongTermMA and SignalNBRPeriods, and set them to your liking, e.g. 14, 32 and 9

     

    1 user thanked author for this post.
    #174241

    Thank you so much. It’s perfect now.

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

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