PureBytes Links
Trading Reference Links
|
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);
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
SPONSORED LINKS
YAHOO! GROUPS LINKS
YAHOO! GROUPS LINKS
|