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

RE: [amibroker] Re: Tim Tillson's T3 Digital Filtering:Word-> Files possible?



PureBytes Links

Trading Reference Links




<FONT face=Arial 
color=#0000ff size=2>Since the strExtract only works with commas that won't 
help.
<FONT face=Arial 
color=#0000ff size=2> 
<FONT face=Arial 
color=#0000ff size=2>dash = strFind(Name(), 
"-");
<FONT face=Arial 
color=#0000ff size=2>if (dash > 
0)

{   Ticker = 
strLeft(Name(), dash -1);
    flag = 
strmid(Name(), dash+1, 1);

<FONT face=Arial 
color=#0000ff size=2> 
<FONT face=Arial 
color=#0000ff size=2>    index = Flag == "I";
<FONT face=Arial 
color=#0000ff size=2>    London = Flag == 
"L";
<SPAN 
class=890372115-02032004>}<SPAN 
class=890372115-02032004><FONT face=Arial color=#0000ff 
size=2>
<FONT face=Arial 
color=#0000ff size=2>else
<FONT face=Arial 
color=#0000ff size=2>{
<FONT face=Arial 
color=#0000ff size=2>your code here for Name() without a "-" in 
it
<FONT face=Arial 
color=#0000ff size=2>}
<FONT face=Arial 
color=#0000ff size=2> 
<FONT face=Arial 
color=#0000ff size=2>Or since this will be used so much maybe a kind soul on the 
dll forum could write us a dll to do it.
<FONT face=Arial 
color=#0000ff size=2> 
<FONT face=Arial 
color=#0000ff size=2>d

  
  
  From: b519b [mailto:b519b@xxxxxxxxx] 
  Sent: Tuesday, March 02, 2004 1:17 AMTo: 
  amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Code challenge caused 
  by CSI's new ticker extension
  My AFL code to automatically create watchists no longer works. 
  The following worked when CSI gave its index ticker names like: 
  RUT-Iindex = StrRight( Name(), 2) == "_i"; //was always at the 
  end.if(index) CategoryAddSymbol( "", categoryIndex, 1 ) ;But now 
  CSI has appended its unique ticker number to each ticker - a good way to 
  make sure active and inactive stocks with the same symbol will have two 
  distinct and unique tickers when imported into AB. So RUT-I new ticker in 
  AB isRUT-I-6754 And my StrRight code will not work. Any ideas 
  on how to change my code would be appreciated. The "brute force" approach 
  would be something like the following, but I am hoping to find a more 
  elegant way to code this. p4 = StrMid( Name(), 4, 2);p5 = 
  StrMid( Name(), 5, 2); //brute forcep6 = StrMid( Name(), 5, 2); //brute 
  forceetc.index = p4 == "-I" OR p5 == "-I" OR p6 == "-I" ;London = 
  p4 == "-L" OR p5 == "-L" OR p6 == "-L" ;etc.if(index) 
  CategoryAddSymbol( "", categoryWatchlist, 6 ) ;if(London) 
  CategoryAddSymbol( "", categoryWatchlist, 7 ) 
  ;etc.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.