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

RE: [EquisMetaStock Group] Colored bars in MACD-Histogram- How?



PureBytes Links

Trading Reference Links

Title: Message
I am not trying to dominate the conversation here, but thought of another way I use to color bars in a histogram.  You can overlay one indicator on top of another.  For instance, with volume as an easy example, first plot your normal volume histogram in green.  To color certain bars a different color, say red, to represent volume that is double the normal average volume, write another indicator that display the volume if volume is double or more but otherwise sets to a value of zero.  Now overlay that on top of the normal volume plot.  Set the color of this overlaying indicator to red.  Whatever indicator is put in the chart last will be on top so your will see a green volume chart with occasional red histogram bars when there is high volume for the trade period.
 
Here is the code for the second overlaying indicator:
 
If(VOLUME >= (Mov(VOLUME,50,S) * 2 )
AND
(Mov(VOLUME,50,S)>0),VOLUME,0)
 
Make sure you set the scaling to the same side of the chart for each indicator (both volume and volume indicator in this case)
 
Best,

Larry Carhartt

MasterDATA
The Only Source for Index & ETF Composite/Breadth Reports, Charts & Data
lc@xxxxxxxxxxxxxx
818-701-6686
 
-----Original Message-----
From: equismetastock@xxxxxxxxxxxxxxx [mailto:equismetastock@xxxxxxxxxxxxxxx] On Behalf Of Tom Loyd
Sent: Friday, September 09, 2005 1:56 PM
To: equismetastock@xxxxxxxxxxxxxxx
Subject: RE: [EquisMetaStock Group] Colored bars in MACD-Histogram- How?

I think the answer you are looking for is, no.  You can not set colors or line style in formulas in indicators.  They must be manually set once displayed.
 
Someone, please correct me if I am wrong, but I have never seen a way described that will do this.

v <entinv@xxxxxxxxxxx> wrote:
Both MACD histogram and volume comes all red on my screen.  Is there anything else needs to be set to see
different colors?
 
Thanks,
  Vladimir
-----Original Message-----
From: equismetastock@xxxxxxxxxxxxxxx [mailto:equismetastock@xxxxxxxxxxxxxxx]On Behalf Of Tim
Sent: Saturday, August 20, 2005 4:55 AM
To: equismetastock@xxxxxxxxxxxxxxx
Subject: RE: [EquisMetaStock Group] Colored bars in MACD-Histogram- How?

Something like this should do the trick.

 

Red:=If(C>O,V,0);

Green:=If(C<=O,V,0);

Red;Green

 

Regards,

Tim.

 


From: equismetastock@xxxxxxxxxxxxxxx [mailto:equismetastock@xxxxxxxxxxxxxxx] On Behalf Of investman
Sent: Saturday, 20 August 2005 11:33
To: equismetastock@xxxxxxxxxxxxxxx
Subject: Re: [EquisMetaStock Group] Colored bars in MACD-Histogram- How?

 

Hi,

 

Is it possible to write a similar forumula for the following scenario:

 

Volume bars: If the CLOSE is higher than OPEN for the day : green colored volume bar and if CLOSE is less than OPEN of the day: red coloured volume bar.

 



 

On 8/19/05, Tim <prez@xxxxxxxxx> wrote:

The code is missing a semi colon at the end of the x:=…. Statement.

 

It should read,

X:=( Mov( C,12,E ) - Mov( C,26,E ) ) - Mov( ( Mov( C,12,E ) - Mov( C,26,E ) ),9,E );

If(X>0,X,0);

If(X<0,X,0);

 

I also didn't address your original request, in that you were looking for an indicator that allows colour in relation to the previous bar.  

Others posted this code, but in case you didn't keep it, the code would be:

X:=( Mov( C,12,E ) - Mov( C,26,E ) ) - Mov( ( Mov( C,12,E ) - Mov( C,26,E ) ),9,E );

If(X>=Ref(X,-1),X,0);

If(X<Ref(X,-1),X,0);

 

Regards,

Tim.


From: equismetastock@xxxxxxxxxxxxxxx [mailto: equismetastock@xxxxxxxxxxxxxxx] On Behalf Of francis ho
Sent: Friday, 19 August 2005 12:03
To: equismetastock@xxxxxxxxxxxxxxx
Subject: RE: [EquisMetaStock Group] Colored bars in MACD-Histogram- How?

 

Thanks Tim...i got errors "Operator expected.  Use +,-,*,/,<,<=,>,>=,<>,=, AND or OR." on the last two lines...any help ?

 

thanks

francis

Tim < prez@xxxxxxxxx> wrote:

Xianlong,,

 

Try this

 

X:=( Mov( C,12,E ) - Mov( C,26,E ) ) - Mov( ( Mov( C,12,E ) - Mov( C,26,E ) ),9,E )

If(X>0,X,0);

If(X<0,X,0);

 

This will now produce two lines where each can selected separate to the other, thus you can colour each line differEntly.

 

Regards,

Tim.

 


From: equismetastock@xxxxxxxxxxxxxxx [mailto: equismetastock@xxxxxxxxxxxxxxx] On Behalf Of Ye Xianlong .
Sent: Wednesday, 17 August 2005 23:44
To: equismetastock@xxxxxxxxxxxxxxx
Subject: [EquisMetaStock Group] Colored bars in MACD-Histogram- How?

 

Hi guys. I was wondering if there is a code for the below MACD-Histogram formula to show green for rising bars & red for declining bars irregardless of above or below the zero line.

 

( Mov( C,12,E ) - Mov( C,26,E ) ) - Mov( ( Mov( C,12,E ) - Mov( C,26,E ) ),9,E )


Thanks in advance & i hope you can help me.


Regards,
Xianlong

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

 

 

SPONSORED LINKS

Business finance course

Business to business finance

Small business finance

Business finance consultant

Business finance magazine

Business finance schools

 


YAHOO! GROUPS LINKS

 

 





Click here to donate to the Hurricane Katrina relief effort.

SPONSORED LINKS
Business finance course Business finance online course Business finance class
Small business finance Business finance schools Business finance small software


YAHOO! GROUPS LINKS