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

RE: [amibroker] String question



PureBytes Links

Trading Reference Links




<SPAN 
class=109391016-20052003>Markus,<FONT color=#0000ff face=Arial 
size=2><FONT color=#000000 
size=2>
<SPAN 
class=109391016-20052003>Filter = <FONT 
color=#0000ff size=2>GetExtraData(<FONT 
color=#ff00ff size=2>"IssueType") == 
"P"; 
"worked" but returned nothing-- your " P" may have been the problem or <FONT 
color=#0000ff size=2>GetExtraData may have tired of the game 
:)
<FONT 
color=#000000 size=2> 
<SPAN 
class=109391016-20052003>Tomasz  said IssueType returns "1 character 
string [matching] the fields available in the QP2 MasterRec--whatever they 
are?<SPAN 
class=109391016-20052003><A 
href="">http://groups.yahoo.com/group/amibroker/message/17355
<SPAN 
class=109391016-20052003> 
<FONT 
color=#000000>
I meant that you 
should use issuetype in a QP scan [see below]
In order see what 
was happening, I scanned with IssueType Preferred; and imported the 
list..
Voila, the 
critters all returned "1".
Hence Filter = 
GetExtraData(<FONT 
color=#ff00ff>"IssueType")<FONT 
face="Courier New"> == <FONT 
color=#ff00ff>"1"; got 
them and  != "1" should toss 'em out. Note, however, that this way is much 
slower than doing it in QP and importing the 
watcchlist.
<SPAN 
class=109391016-20052003>Bob
<SPAN 
class=109391016-20052003><FONT 
color=#0000ff face=Arial size=2><SPAN 
class=109391016-20052003>---<FONT 
size=2><SPAN 
class=109391016-20052003>
<FONT 
face=Arial>I 
normally use IssueType Common; , but 
this exclude<SPAN 
class=109391016-20052003>s warrants<SPAN 
class=109391016-20052003>, closed- end funds<SPAN 
class=109391016-20052003>, and ETF. 
Add them if desired, e.g., <FONT 
color=#0000ff face=Arial size=2>IssueType 
Common,ETF; 

<SPAN 
class=109391016-20052003>Had never tried IssueType != Preferred;, but now see 
it's unliked.

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: funnybiz@xxxxxx 
  [mailto:funnybiz@xxxxxx]Sent: Tuesday, May 20, 2003 7:51 
  AMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker] 
  String question
  Bob,
   
  glad you stepped in here.
   
  I used the 
  filter=getextradata("issuetype")=="p".
   
  Weird enough, AB starts checking, then returns 
  error as below.
   
  Would you mind checking if the code is correct 
  (i.e. finds ALL preferred) plus if you encounter the same error, 
  please????
   
  Line 2, Column 40:Filter= 
  GetExtraData("issuetype")==" 
  p";---------------------------------------^
   
  Error 18.GetExtraData failed
   
  Many thanks
   
  Markus
   
   
   
  <BLOCKQUOTE 
  >
    <DIV 
    >From: 
    Bob Jagow 
    
    To: <A 
    href="" 
    title=amibroker@xxxxxxxxxxxxxxx>amibroker@xxxxxxxxxxxxxxx 
    Sent: Tuesday, May 20, 2003 4:36 
    PM
    Subject: RE: [amibroker] String 
    question
    
    <SPAN 
    class=499482914-20052003>Especially since there are lots of preferred 
    issues [such as CYA] that don't end in " P*".
    <SPAN 
    class=499482914-20052003>Would need to use issuetype to exclude 
    them.
    <SPAN 
    class=499482914-20052003> 
    <SPAN 
    class=499482914-20052003>Bob <FONT color=#0000ff 
    face=Arial size=2>
    
      <FONT face=Tahoma 
      size=2>-----Original Message-----From: <A 
      href="">funnybiz@xxxxxx 
      [mailto:funnybiz@xxxxxx]Sent: Tuesday, May 20, 2003 1:54 
      AMTo: <A 
      href="">amibroker@xxxxxxxxxxxxxxxSubject: 
      Re: [amibroker] String question
      Jayson,
       
      this might be the most efficient way to 
      go.
       
      Justwanted to play arount with the string 
      functions to understand them better.
       
      Markus
      <BLOCKQUOTE 
      >
        ----- Original Message ----- 
        <DIV 
        >From: 
        <A href="" 
        title=jcasavant@xxxxxxxxxxxx>Jayson 
        To: <A 
        href="" 
        title=amibroker@xxxxxxxxxxxxxxx>amibroker@xxxxxxxxxxxxxxx 
        Sent: Monday, May 19, 2003 4:40 
        PM
        Subject: RE: [amibroker] String 
        question
        
        <SPAN 
        class=290302014-19052003>Markus,
        <SPAN 
        class=290302014-19052003>Why not simply do this in QP2 then create a 
        watchlist of your exported qp2 list? The advantage is that AB does not 
        need to chug through your whole database checking all your various 
        criteria since every stock in your watchlist will meet all your 
        criteria.When doing scans and explores you simply point to this 
        "Universe" of stocks.
         
        Regards, 
        Jayson 
        <FONT face=Tahoma 
        size=2>-----Original Message-----From: funnybiz@xxxxxx 
        [mailto:funnybiz@xxxxxx]Sent: Monday, May 19, 2003 5:32 
        AMTo: Amibroker (Yahoo-Forum)Subject: [amibroker] 
        String question
        Hello,
         
        I want to exclude all preferred stocks from 
        my scan.
         
        In their symbols they either end with " p" 
        (space p) or with " p.." (space p followed by any other 
        letter).
         
        While the first may be excluded by<FONT 
        color=#6600aa face="Courier New"> 
        (StrRight<FONT 
        color=#6600aa face="Courier New">(<FONT color=#0000ff 
        face="Courier New">Name<FONT color=#6600aa 
        face="Courier New">(),<FONT color=#ff00ff 
        face="Courier New">2) != 
        " P"
        how could exclude latter case since I don´t know which (if at all) 
        letter might follow??
        Thank you for your help
         
        Markus
        
         
         
        (StrRight<FONT 
        color=#6600aa face="Courier New">(<FONT color=#0000ff 
        face="Courier New">Name<FONT color=#6600aa 
        face="Courier New">(),<FONT color=#ff00ff 
        face="Courier New">2) != 
        " P"<FONT 
        color=#6600aa face="Courier New">);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 
        Your use of Yahoo! Groups is subject to the <A 
        href="">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 
        Your use of Yahoo! Groups is subject to the <A 
        href="">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 
      Your use of Yahoo! Groups is subject to the <A 
      href="">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 
    Your use of Yahoo! Groups is subject to the <A 
    href="">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 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









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



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