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

AFL help



PureBytes Links

Trading Reference Links


Hello,
 
Can anyone please helpme 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.
<FONT 
size=2> 
BTW, does anyone use Drummond 
Geometry? Have you written any AFLs for it?
 
Larry 
Lovrencic
<FONT face="Courier New" 
color=#008000>
/* 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" +<FONT 
color=#ff00ff>" 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=1.2)+<FONT 
color=#ff00ff>" The Trend is"+<FONT 
color=#0000ff>WriteIf(C>=PLdot," 
up"," down");
<FONT face="Courier New" 
size=1>