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

Re: [amibroker] Problem after installing 4.53 beta



PureBytes Links

Trading Reference Links




Jayson,
 
My original intent was flow control so 
IIF isn't going to work for that, but your points are well taken.  I'll try 
some of these things out and see where I get.  I'm just glad that I'm not 
bald.
 
Glen
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Jayson 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Monday, March 22, 2004 9:29 
AM
  Subject: RE: [amibroker] Help with 
  referencing previous prices
  
  <FONT face=Arial color=#0000ff 
  size=2>Actually the Boolean expression is "X" as "X" is either true (1) or 
  False(0). You could string this together as 
  <FONT face=Arial color=#0000ff 
  size=2> 
  <FONT face=Arial color=#0000ff 
  size=2>y=iif(x,cond1,cond2)
  <FONT face=Arial color=#0000ff 
  size=2> 
  The 
  title example was just to illustrate how "X" could be rendered in an IIF 
  statement...
   
  Regards, 
  Jayson 
  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Glen Haponek 
  [mailto:ghaponek@xxxxxxx]Sent: Monday, March 22, 2004 8:12 
  AMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker] 
  Help with referencing previous prices
  Jayson,
   
  Are you saying that "Title" holds the value of 
  True (1) or False (0) and therefore will represent a Boolean 
  expression to be evaluated as True or False in an If, FOR or WHILE 
  statement?
   
  Glen 
  <BLOCKQUOTE 
  >
    ----- Original Message ----- 
    <DIV 
    >From: 
    <A title=jcasavant@xxxxxxxxxxx 
    href="">Jayson 
    To: <A title=amibroker@xxxxxxxxxxxxxxx 
    href="">amibroker@xxxxxxxxxxxxxxx 
    Sent: Monday, March 22, 2004 12:25 
    AM
    Subject: RE: [amibroker] Help with 
    referencing previous prices
    
    <SPAN 
    class=016101305-22032004>Glen,
    <SPAN 
    class=016101305-22032004> 
    C [ 3 ] > C [ 2 ] and  C 
    [ 2 ] > C [1 ] and C [ 1 ] > C [ 0 ] , 
     
    <FONT 
    color=#282828 size=2>Could be written 
    as.....
    <FONT 
    color=#0000ff> 
    x=<FONT 
    size=2>Ref(C<FONT 
    color=#0000ff>,-3)>Ref(C<FONT 
    color=#0000ff>,-2) AND<FONT 
    color=#0000ff> Ref(C<FONT 
    color=#0000ff>,-2)>Ref(C<FONT 
    color=#0000ff>,-1) AND<FONT 
    color=#0000ff> Ref(C<FONT 
    color=#0000ff>,-1)>C<FONT 
    color=#282828><FONT face=Arial 
    color=#0000ff>;
    Plot<FONT 
    size=2>(x<FONT 
    color=#282828>,"3 days"<FONT 
    color=#282828>,4<FONT 
    color=#282828>,2<FONT 
    color=#282828>);
    Title<FONT 
    face=Arial>=WriteIf(x,"There you Go!!", "No 
    Dice"<FONT 
    color=#0000ff>);
    <FONT face=Arial color=#0000ff 
    size=2> 
    <FONT face=Arial 
    color=#0000ff size=2>You see I plotted "X" as a histogram . The condition is 
    either True (1) or false, (0). The condition can be referenced as I did in 
    the title line or used in another condition.... 
     
     
    Regards, 
    Jayson 
    <FONT face=Tahoma 
    size=2>-----Original Message-----From: Glen Haponek 
    [mailto:ghaponek@xxxxxxx]Sent: Sunday, March 21, 2004 1:51 
    PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
    Help with referencing previous prices
    Could someone please explain how I can write 
    something like  ( Close > Lag Close 1 and Lag Close 1 
    > lag Close 2 and Lag Close 2 > Lag Close 3) in an IF or WHILE in AFL 
    such that I don't get : 
     
    Error 3.Condition in IF, WHILE, FOR 
    statementshas to be Numeric or Boolean type.You can not use array 
    here,please use [] (array subscript operator)to access array 
    elements
     
    I would greatly appreciate it.  I have 
    been going in circles with this and do not see any explanation in the user's 
    guide, or examples in the AFL library.  I've been trying to resolve 
    this for longer than I would like to admit, and my frustration level is 
    fairly high.
     
    Thanks,
    GlenSend 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@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@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@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 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.