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

RE: [amibroker] Re: PLOT GRIDS ON INDICATOR



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>David,
IIf 
requires a then..... in your example you outlines all the colors you wanted IIF 
certain trin levels were met but....what if none were met? also you want to 
order the colors so that your greatest level (red) comes first, other wise the 
red is covered by the last color because if you have >1.10 you are ALSO 
>.6   Try..
<FONT face=Arial color=#0000ff 
size=2> 
 <FONT 
color=#008000 size=2>
//Trin Barometer//<FONT 
color=#282828 size=2>
Val1 =<FONT 
color=#0000ff>Foreign(<FONT 
size=2>"$Trin",<FONT 
size=2>"C"<FONT face=Arial 
color=#0000ff>);
Col=<FONT 
color=#0000ff>IIf( Val1><FONT 
size=2>1.10, <FONT 
size=2>colorRed<FONT 
color=#0000ff>,IIf<FONT 
size=2>(val1>1.05,<FONT 
size=2>colorOrange<FONT 
color=#0000ff>, IIf( 
Val1>.95, colorYellow<FONT 
face=Arial> ,<FONT 
size=2>IIf( Val1>.80, <FONT 
size=2>colorBrightGreen<FONT 
color=#0000ff>, IIf( 
val1>.60, colorDarkGreen<FONT 
face=Arial>,IIf<FONT 
size=2>( Val1>1.10, <FONT 
size=2>colorRed<FONT 
color=#0000ff>, <FONT 
size=2>colorWhite<FONT 
face=Arial color=#0000ff>) ) ) ) )) ;<FONT color=#0000ff 
size=2>
Plot<FONT color=#282828 
size=2>( 100<FONT color=#282828 
size=2>, "Ribbon"<FONT color=#282828 
size=2>, col, <FONT 
color=#000000>styleOwnScale<FONT 
color=#282828 size=2>|<FONT 
color=#000000>styleArea<FONT 
color=#282828 size=2>|<FONT 
color=#000000>styleNoLabel<FONT 
color=#282828 size=2>, -0.5<FONT 
color=#282828 size=2>, 100<FONT 
color=#282828 size=2> );<FONT color=#282828 
size=2>
 
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: wooziwog 
[mailto:xcitemint@xxxxxxx]Sent: Wednesday, March 24, 2004 10:45 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] AFL 
Code help Please :-)I am new to AFL code and have 
failed at getting the following formula to work.  I am trying to create 
a ribbon that will change colors determined by the Trin reading.  I can 
get it to work with two colors but am having problems with multi 
colors.  I appreciate any help you can give.David 
K.//Trin Barometer//Val1 = Foreign("$Trin","c");Plot( 100, 
Ribbon", IIf( val1>.60, colorDarkGreen, IIf( Val1>.80, 
colorBrightGreen, IIf( Val1>.95, colorYellow , 
IIf(val1>1.05,colorOrange, IIf( Val1>1.10, colorRed, ) ) ) ) 
)) ,styleOwnScale|styleArea|styleNoLabel, -0.5, 100 ); 
Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 
SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------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 



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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








Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.