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

RE: [amibroker] AFL help



PureBytes Links

Trading Reference Links


Of 
course!
 
<FONT 
color=#0000ff size=2>Thankyou Mohan! <A 
 
 
href="" target=_blank> 
<A 
href="" 
target=_top> 
<BLOCKQUOTE 
>
<FONT face=Tahoma 
size=2>-----Original Message-----From: Mohan Yellayi 
[mailto:myellayi@xxxx]Sent: Friday, 16 November 2001 
13:37To: amibroker@xxxxxxxxxxxxxxxSubject: Re: 
[amibroker] AFL help
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 title=amibroker@xxxxxxxxxxxx 
href="">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 graph0barcolorpart 
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 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 = 
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=<FONT 
color=#ff00ff>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. 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.