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

RE: [amibroker] Code to specify a specific parameter for a specific ticker for a specific period of time?


  • To: <amibroker@xxxxxxxxxxxxxxx>
  • Subject: RE: [amibroker] Code to specify a specific parameter for a specific ticker for a specific period of time?
  • From: "dingo" <dingo@xxxxxxxxxxxx>
  • Date: Mon, 5 Jan 2004 08:20:15 -0800
  • Title: Message

PureBytes Links

Trading Reference Links




it can 
vary - got a sample of whatcher talkin' 'bout?
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>d

  
  <FONT 
  face=Tahoma size=2>-----Original Message-----From: Ken Close 
  [mailto:closeks@xxxxxxxx] Sent: Monday, January 05, 2004 7:34 
  AMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: [amibroker] 
  Code to specify a specific parameter for a specific ticker for a specific 
  period of time?
  
  <SPAN 
  >Dale:  How many 
  tickers do you have to process at one time?  Have you tried to put them 
  into an overall outside loop themselves or just repeat the code below x number 
  of times, one for each ticker?
  <SPAN 
  > 
  <SPAN 
  >Ken
  <SPAN 
  > 
  <SPAN 
  >-----Original 
  Message-----From: dingo 
  [mailto:dingo@xxxxxxxxxxxx] <SPAN 
  >Sent: Monday, January 05, 2004 12:56 
  AMTo: 
  amibroker@xxxxxxxxxxxxxxx<SPAN 
  >Subject: RE: [amibroker] Code to specify 
  a specific parameter for a specific ticker for a specific period of 
  time?
  <SPAN 
  > 
  
  <SPAN 
  >Thought I'd wrap up 
  this post with what I finally decided on.
  
  <SPAN 
  > 
  
  <SPAN 
  >Dave - you were right 
  the multiplications are too processor intenstive and the iif's take care of 
  that.
  
  <SPAN 
  > 
  
  <SPAN 
  >Thanks to both you 
  and Graham!
  
  <SPAN 
  > 
  
  <SPAN 
  >Q103 = (DateNum() 
  >= 1030101 AND DateNum() <= 1030331);Q203 = (DateNum() >= 1030401 
  AND DateNum() <= 1030630);Q303 = (DateNum() >= 1030701 AND DateNum() 
  <= 1030930);Q403 = (DateNum() >= 1031001 AND DateNum() <= 
  1031231);
  
  <SPAN 
  > 
  
  <SPAN 
  >if(Name()=="ADBE")    
  {    Slevel = IIf(Q103, 1, IIf(Q203, 2,  IIf(Q303, 
  3,  IIf(Q403, 4, 9999))));    
}
  
  <SPAN 
  > 
  
  <SPAN 
  >if(Name()=="ALO")    
  {    Slevel = IIf(Q103, 11, IIf(Q203, 12,  IIf(Q303, 
  13,  IIf(Q403, 14, 9999))));    
  }
  
  <SPAN 
  > 
  
  <SPAN 
  >AddColumn(SLevel 
  ,      "SLevel ",      
  1.0);Filter = 1;
  
  <SPAN 
  >d
  
    <FONT face=Tahoma 
    size=2>-----Original 
    Message-----From: Graham 
    [mailto:gkavanagh@xxxxxxxxxxxxx] <SPAN 
    >Sent: Sunday, January 04, 2004 8:03 
    PMTo: 
    amibroker@xxxxxxxxxxxxxxx<SPAN 
    >Subject: RE: [amibroker] Code to 
    specify a specific parameter for a specific ticker for a specific period of 
    time?
    
    <SPAN 
    >Sorry dingo, maybe I could make 
    it a bit more complicated and use some looping statements using a few 
    fors, whiles, wends, ifs and buts ;-)
    
    <SPAN 
    > 
    
    <SPAN 
    > 
    <SPAN 
    >Cheers,Graham<A 
    href="">http://groups.msn.com/asxsharetrading<A 
    href="">http://groups.msn.com/fmsaustralia 
    
    <BLOCKQUOTE 
      ><P 
      class=MsoNormal ><SPAN 
      >-----Original 
      Message-----From: dingo 
      [mailto:dingo@xxxxxxxxxxxx] <SPAN 
      >Sent: Monday, 5 January 2004 8:38 
      AMTo: 
      amibroker@xxxxxxxxxxxxxxx<SPAN 
      >Subject: RE: [amibroker] Code to 
      specify a specific parameter for a specific ticker for a specific period 
      of time?
      
      <SPAN 
      >Thanks Graham BUT 
      that's waay to simple!  Could you make it much more complicated for 
      me as that's the way I like to do things?  
8-)
      
      <SPAN 
      > 
      
      <SPAN 
      >d
      <BLOCKQUOTE 
>
        <FONT face=Tahoma 
        size=2>-----Original 
        Message-----From: 
        Graham [mailto:gkavanagh@xxxxxxxxxxxxx] <SPAN 
        >Sent: Sunday, January 04, 2004 7:31 
        PMTo: 
        amibroker@xxxxxxxxxxxxxxx<SPAN 
        >Subject: RE: [amibroker] Code to 
        specify a specific parameter for a specific ticker for a specific period 
        of time?
        <FONT 
        face="Courier New" size=2>You could just 
        use this , just check the bracket numbers for 
        closure<SPAN 
        ><FONT 
        face="Courier New">Slevel = (Name()=="ADBE") * ( ( (DateNum() >= 
        1030401 AND DateNum() <=<FONT 
        face="Courier New">1030630) * 34 ) + ( (DateNum() >= 1030701 AND 
        DateNum() <= 1030930) * 2 ) );<FONT 
        face="Courier New">Cheers,<FONT 
        face="Courier New">Graham<A 
        href="">http://groups.msn.com/asxsharetrading<FONT 
        face="Courier New"><A 
        href="">http://groups.msn.com/fmsaustralia 
        -----Original 
        Message-----From: dingo 
        [mailto:dingo@xxxxxxxxxxxx] <FONT 
        face="Courier New">Sent: Monday, 5 January 2004 8:23 
        AMTo: 
        _amibroker_yahooSubject: 
        [amibroker] Code to specify a specific parameter for a 
        specificticker for a 
        specific period of time?<FONT 
        face="Courier New">As the subject says "Code to specify a specific 
        parameter for a specific<FONT 
        face="Courier New">ticker for a specific period of 
        time?".I'm in a brain 
        fog and could use some help. Here's what I've coded 
        so<FONT 
        face="Courier New">far:<FONT 
        face="Courier New">Slevel will be used as the cross line for an 
        oscillator.<FONT 
        face="Courier New">if(Name()=="ADBE")<FONT 
        face="Courier New">    {<FONT 
        face="Courier New">    if (DateNum() >= 1030401 AND 
        DateNum() <= 1030630)<FONT 
        face="Courier New">        
        {<FONT 
        face="Courier New">        Slevel = 
        34;<FONT 
        face="Courier New">        
        }    if 
        (DateNum() >= 1030701 AND DateNum() <= 
        1030930)<FONT 
        face="Courier New">        
        {<FONT 
        face="Courier New">        Slevel = 
        2;<FONT 
        face="Courier New">        
        }    
        }Filter = 
        1;AddColumn(SLevel, 
        "SLevel ", 1.0);But 
        I'm getting a syntax error:<FONT 
        face="Courier New">Error 3.<FONT 
        face="Courier New">Condition in IF, WHILE, FOR 
        statementshas to be Numeric 
        or Boolean type.You can not 
        use array here,please use 
        [] (array subscript operator)<FONT 
        face="Courier New">to access array elements<FONT 
        face="Courier New">How can I make this 
        work?<FONT 
        face="Courier New">d<FONT 
        face="Courier New">Send BUG REPORTS to 
        bugs@xxxxxxxxxxxxxSend 
        SUGGESTIONS to suggest@xxxxxxxxxxxxx<FONT 
        face="Courier New">-----------------------------------------<FONT 
        face="Courier New">Post AmiQuote-related messages ONLY to: 
        amiquote@xxxxxxxxxxxxxxx <FONT 
        face="Courier New">(Web page: <A 
        href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
        face="Courier New">--------------------------------------------<FONT 
        face="Courier New">Check group FAQ at:<FONT 
        face="Courier New"><A 
        href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
        <FONT 
        face="Courier New">------------------------ Yahoo! Groups Sponsor 
        ---------------------~--> Buy<FONT 
        face="Courier New">Ink Cartridges or Refill Kits for your HP, Epson, 
        Canon or Lexmark Printerat 
        MyInks.com. Free s/h on orders $50 or more to the US & 
        Canada.<A 
        href="">http://www.c1tracking.com/l.asp?cid=5511<FONT 
        face="Courier New"><A 
        href="">http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM<FONT 
        face="Courier New">---------------------------------------------------------------------~-><FONT 
        face="Courier New">Yahoo! Groups Links<FONT 
        face="Courier New">To visit your group on the web, go 
        to:<A 
        href="">http://groups.yahoo.com/group/amibroker/<FONT 
        face="Courier New">To unsubscribe from this group, send an email 
        to:<FONT 
        face="Courier New">amibroker-unsubscribe@xxxxxxxxxxxxxxx<FONT 
        face="Courier New">Your use of Yahoo! Groups is subject to:  <A 
        href="">http://docs.yahoo.com/info/terms/ 
        <FONT face="Courier New" 
        size=2>Send BUG REPORTS to 
        bugs@xxxxxxxxxxxxx<FONT face="Courier New" 
        size=2><SPAN 
        ><FONT 
        face="Courier New">Send SUGGESTIONS to 
        suggest@xxxxxxxxxxxxx<FONT 
        face="Courier New">-----------------------------------------<FONT 
        face="Courier New">Post AmiQuote-related messages ONLY to: 
        amiquote@xxxxxxxxxxxxxxx <FONT 
        face="Courier New">(Web page: <A 
        href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
        face="Courier New">--------------------------------------------<FONT 
        face="Courier New">Check group FAQ at: <A 
        href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
        
        <FONT 
        face="Courier New" size=2>
        
        
        <SPAN 
        >Yahoo! Groups 
        Links
        
          <SPAN 
          >To visit your 
          group on the web, go to:<A 
          href="">http://groups.yahoo.com/group/amibroker/  
          
          <SPAN 
          >To unsubscribe 
          from this group, send an email to:<A 
          href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  
          
          <SPAN 
          >Your use of Yahoo! 
          Groups is subject to the <A 
          href="">Yahoo! Terms of Service. 
          
        <SPAN 
        > 
      <FONT 
      face="Times New Roman" size=3><SPAN 
      ><FONT face="Courier New" 
      size=2>Send BUG REPORTS to 
      bugs@xxxxxxxxxxxxx<SPAN 
      ><FONT 
      face="Courier New">Send SUGGESTIONS to 
      suggest@xxxxxxxxxxxxx<FONT 
      face="Courier New">-----------------------------------------<FONT 
      face="Courier New">Post AmiQuote-related messages ONLY to: 
      amiquote@xxxxxxxxxxxxxxx (Web 
      page: <A 
      href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
      face="Courier New">--------------------------------------------<FONT 
      face="Courier New">Check group FAQ at: <A 
      href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
      
      <FONT 
      face="Courier New" size=2>
      
      
      <SPAN 
      >Yahoo! Groups 
      Links
      
        <SPAN 
        >To visit your group 
        on the web, go to:<A 
        href="">http://groups.yahoo.com/group/amibroker/  
        
        <SPAN 
        >To unsubscribe from 
        this group, send an email to:<A 
        href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  
        
        <SPAN 
        >Your use of Yahoo! 
        Groups is subject to the <A 
        href="">Yahoo! Terms of Service. 
        
      <SPAN 
      > 
    <FONT face="Times New Roman" 
    size=3><FONT 
    face="Courier New" size=2>Send BUG REPORTS to 
    bugs@xxxxxxxxxxxxx<SPAN 
    ><FONT 
    face="Courier New">Send SUGGESTIONS to 
    suggest@xxxxxxxxxxxxx<FONT 
    face="Courier New">-----------------------------------------<FONT 
    face="Courier New">Post AmiQuote-related messages ONLY to: 
    amiquote@xxxxxxxxxxxxxxx (Web 
    page: <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
    face="Courier New">--------------------------------------------<FONT 
    face="Courier New">Check group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    
    <FONT 
    face="Courier New" size=2>
    
    
    <SPAN 
    >Yahoo! Groups 
    Links
    
      <SPAN 
      >To visit your group on 
      the web, go to:<A 
      href="">http://groups.yahoo.com/group/amibroker/  
      
      <SPAN 
      >To unsubscribe from 
      this group, send an email to:<A 
      href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  
      
      <SPAN 
      >Your use of Yahoo! 
      Groups is subject to the <A 
      href="">Yahoo! Terms of Service. 
      
    <SPAN 
    > 
  <FONT face="Times New Roman" 
  size=3><FONT 
  face="Courier New" size=2>Send BUG REPORTS to 
  bugs@xxxxxxxxxxxxx<SPAN 
  ><FONT 
  face="Courier New">Send SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx<FONT 
  face="Courier New">-----------------------------------------<FONT 
  face="Courier New">Post AmiQuote-related messages ONLY to: 
  amiquote@xxxxxxxxxxxxxxx (Web 
  page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
  face="Courier New">--------------------------------------------<FONT 
  face="Courier New">Check group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  
  <FONT 
  face="Courier New" size=2>
  
  
  <SPAN 
  >Yahoo! Groups 
  Links
  
    <SPAN 
    >To visit your group on 
    the web, go to:<A 
    href="">http://groups.yahoo.com/group/amibroker/  
    
    <SPAN 
    >To unsubscribe from this 
    group, send an email to:<A 
    href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  
    
    <SPAN 
    >Your use of Yahoo! 
    Groups is subject to the Yahoo! 
    Terms of Service. 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 
  
  
  Yahoo! Groups Links
  
    To visit your group on the web, go to:<A 
    href="">http://groups.yahoo.com/group/amibroker/  

    To unsubscribe from this group, send an email to:<A 
    href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  

    Your use of Yahoo! Groups is subject to the <A 
    href="">Yahoo! Terms of Service. 
  


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.