PureBytes Links
Trading Reference Links
|
You have to define PLdot before you can color the
graph !
Put the Pldot statement before Graph0color
statement.
PLdot=Ref(((Av+<FONT
color=#0000ff>Ref(Av,-1)+<FONT
color=#0000ff>Ref(Av,-2))/<FONT
color=#ff00ff>3),-1)
<FONT
face="Courier New">Graph0BarColor=<FONT
color=#0000ff>IIf(PLdot>=<SPAN
class=100141002-16112001>C,<FONT
color=#ff00ff>5,4);
Mohan
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Yahoo
To: <A
href=""
title=amibroker@xxxxxxxxxxxxxxx>amibroker@xxxxxxxxxxxxxxx
Sent: Thursday, November 15, 2001 9:18
PM
Subject: [amibroker] AFL help
Hello,
Can anyone please help me
with the following AFL?
The graph0barcolor part does
not seem to work.
I am trying to have green
bars if PLdot is greater than or equal to the close and red if less than the
close.
The formula functions OK
without the bar color part.
<SPAN
class=100141002-16112001>
BTW, does anyone useDrummond
Geometry? Have you written any AFLs for it?
Larry
Lovrencic
<FONT color=#008000
face="Courier New">
/* PLdot - Drummond Geometry */
Graph0=C;
Graph0Color<FONT
face="Courier New">=29;
Graph0Style<FONT
face="Courier New">=4+<FONT
color=#ff00ff>128;
Graph0BarColor<FONT
face="Courier New">=IIf(PLdot>=<SPAN
class=100141002-16112001>C,<FONT
color=#ff00ff>5,4);
Av=(H+L+C)/<FONT
color=#ff00ff>3;
PLdot=Ref(((Av+<FONT
color=#0000ff>Ref(Av,-1)+<FONT
color=#0000ff>Ref(Av,-2))/<FONT
color=#ff00ff>3),-1);
Graph1<FONT
face="Courier New">=PLdot;
Graph1Color<FONT
face="Courier New">=4;
Graph1Style<FONT
face="Courier New">=4+<FONT
color=#ff00ff>8+16+<FONT
color=#ff00ff>512;
graphxspace=<FONT
color=#ff00ff>5;
Title= <FONT
color=#0000ff>Date()+" "+<FONT
color=#0000ff>Name()+" Drummond PLdot"
+" O"+<FONT
color=#0000ff>WriteVal(O,format=<FONT
color=#ff00ff>1.2)+" H"+<FONT
color=#0000ff>WriteVal(H,format=<FONT
color=#ff00ff>1.2)+" L"+<FONT
color=#0000ff>WriteVal(L,format=<FONT
color=#ff00ff>1.2)+" C"+<FONT
color=#0000ff>WriteVal(C,format=1.2)+
" PLdot=" + <FONT
color=#0000ff>WriteVal(PLdot,format=<FONT
color=#ff00ff>1.2)+" The Trend is"+<FONT
color=#0000ff>WriteIf(C>=PLdot,"
up"," down");
<FONT face="Courier New"
size=1> Your
use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
|