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?
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);
Thanks
Tim...i got errors "Operator expected. Use
+,-,*,/,<,<=,>,>=,<>,=, AND or OR." on the last two
lines...any help ?
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.
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.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
YAHOO!
GROUPS LINKS
YAHOO! GROUPS LINKS
|