Greetings all,
I would like to request that a study that I found useful be converted into a histogram. The study that I intend to convert into a histogram is as follows,
The color of the histogram should be in a similar pattern to that of a MACD. If the Histogram value is negative, the color should be red; otherwise, the color should be green. It should also be able to track histogram bars where the value has increased/decreased from its previous histogram bar (by changing the histogram bar colors just like MACD). I found it useful for tracing reversals. Any help is much appreciated.
Thank you,
Sha
I would like to request that a study that I found useful be converted into a histogram. The study that I intend to convert into a histogram is as follows,
Code:
def cl = close(period=aggregationPeriod.THirty_MIN);
def op = open(period=aggregationPeriod.THirty_MIN);
def hi = high(period=aggregationPeriod.THirty_MIN);
def lo = high(period=aggregationPeriod.THirty_MIN);
def EM35 = MovAvgExponential(cl,35);
def haC = (op + hi + lo + cl)/4 ;
def haO = (haO[1] +haC[1])/2 ;
def haL = min(min(lo,haO),haC);
def haH = max(max(hi,haO),haC);
def Per_1 = (((hac[3] - haC)/haC)*100);
def Per_2 = (((EM35[3] - EM35)/EM35)*100);
def Histogram value = Per_1 + Per_2 ;
The color of the histogram should be in a similar pattern to that of a MACD. If the Histogram value is negative, the color should be red; otherwise, the color should be green. It should also be able to track histogram bars where the value has increased/decreased from its previous histogram bar (by changing the histogram bar colors just like MACD). I found it useful for tracing reversals. Any help is much appreciated.
Thank you,
Sha