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

RE: [amibroker] question about ribbon



PureBytes Links

Trading Reference Links




<SPAN 
class=397495520-08022003>Dennis,
in 
your third plot you are currently defining the color as the value of 
MACD()<Signal  . This is either true or false (1 or 0) so in fact you 
are setting the color to 1 or 0 based on the current macd and signal readings. 
You need to follow the form of your other plots
<SPAN 
class=397495520-08022003> 
<SPAN 
class=397495520-08022003>Plot(variable,"name it",color, style); if you want to 
change the color dependant of the macd/signal calculation you could create a 
variable .....
<SPAN 
class=397495520-08022003> 
<SPAN 
class=397495520-08022003>color=IIf 
(macd()>ema(macd(),9),colorgreen,colorred);
<SPAN 
class=397495520-08022003> 
<SPAN 
class=397495520-08022003>so........
<SPAN 
class=397495520-08022003> 
<FONT 
color=#0000ff size=2> 
Plot(<FONT color=#0000ff 
size=2>MACD(),<FONT color=#ff00ff 
size=2>"macd",<FONT color=#000000 
size=2>colorGreen,<FONT 
color=#000000 size=2>styleLine<FONT color=#282828 
size=2>);
Plot(<FONT color=#0000ff 
size=2>EMA( <FONT color=#0000ff 
size=2>MACD(), <FONT color=#ff00ff 
size=2>9 ),<FONT color=#ff00ff 
size=2>"signal",<FONT color=#000000 
size=2>colorRed,<FONT 
color=#000000 size=2>styleLine<FONT color=#282828 
size=2>);
color=IIf (<FONT 
size=2>MACD()>EMA<FONT 
size=2>(MACD(),<FONT 
size=2>9),<FONT 
size=2>colorGreen,<FONT 
size=2>colorRed<FONT 
color=#0000ff>);
Plot(<FONT color=#ff00ff 
size=2>30,<FONT color=#ff00ff 
size=2>"ribbon",<FONT color=#282828 
face=Arial size=2>color,<FONT color=#000000 
size=2>styleOwnScale|<FONT 
color=#000000 size=2>styleArea<FONT color=#282828 
size=2>|styleNoLabel<FONT 
color=#282828 size=2>, -0.5<FONT 
color=#282828 size=2>, 100<FONT 
color=#282828 size=2> );
 
 Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: Dennis_33437 
<dennis5692@xxxxxxxxx> [mailto:dennis5692@xxxxxxxxx]Sent: 
Saturday, February 08, 2003 11:55 AMTo: 
amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] question about 
ribbonHi everyone,I want to change the color of 
the ribbon, right now it a pale green color, it must be the default 
color.when I add (colorred) in the formula, it does not accept it, what am 
I doing wrong?thank 
you,DennisPlot(MACD(),"macd",colorGreen,styleLine);Plot(EMA( 
MACD(), 9 
),"signal",colorRed,styleLine);Plot(30,"ribbon",MACD()<Signal(),styleOwnScale|styleArea|styleNoLabel, 
-0.5, 100 );Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT  









Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.