MACDColorHist.efs does almost what I want. If a histogram bar is lower then the previous bar, I want to see it in red (or green , if the bar is higher).
But this efs changes bar color based on histogram bar movement as it evolves during its interval. Say previous histo bar is 0.05. In this efs, if the current bar moves between 0.08 and 0.07, the bar would display in red as it drops (and green as it rises), even though it is higher than the previous bar. I prefer to see it always in green as long as it is above 0.05.
I tried adding SetCompute on Close, but then I don't see the current bar fluctuations, which I want to see. I tried defining vHist1 = study.getValue(MACDStudy.HIST, -1) but that didn't work.
Any suggestions on how to achieve the above?
Thanks
shaeffer
But this efs changes bar color based on histogram bar movement as it evolves during its interval. Say previous histo bar is 0.05. In this efs, if the current bar moves between 0.08 and 0.07, the bar would display in red as it drops (and green as it rises), even though it is higher than the previous bar. I prefer to see it always in green as long as it is above 0.05.
I tried adding SetCompute on Close, but then I don't see the current bar fluctuations, which I want to see. I tried defining vHist1 = study.getValue(MACDStudy.HIST, -1) but that didn't work.
Any suggestions on how to achieve the above?
Thanks
shaeffer
Comment