[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MAC-LT Indicator bars



PureBytes Links

Trading Reference Links

> I use an Indicator called the "MAC-LT", adapted from Gerald Appel's  MACD
> Indicator.
> 
> The Histogram bars are now of one color, regardless if they 
> are above (BULL market) or below (BEAR market) the "0" line.
> 
> I would like to change this so that histogram bars appearing "above" the
> "0" line (positive values for a BULL trend) appear green and those
> appearing "below" the "0" line (negative values for a BEAR trend) appear
> red.
> 
> Colors of course have no bearing on the mathematical signals of the MAC-LT
> - colors just make the MAC-LT look prettier!
> 
> Thanks in advance to anyone for their help and timely reply
> Gerald Marisch
> 

+++++++++++++++
if "name of indicator" >= 0 then begin
	plot1(name of indicator,">= zero");    {set to GREEN histogramm}
end else begin
	plot2(name of indicator,"< zero");      {set to RED histogramm}
END;
+++++++++++++++

OR

 +++++++++++++++++
if "name of indicator" > 0 then plot1(name of indicator,">= zero");  {set to GREEN histogramm}
if "name of indicator" < 0 then plot2(name of indicator,"<  zero");   {set to RED histogramm}
+++++++++++++++++

hope that was timely enough - sorry it taken so long to type it :--))

rgds hans