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

[amibroker] Re: Need a Numerical Stock reference



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Thanks DT but that doesn't work reliably. 

<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>Your ID is not permanent across watchlist or with changing 
watchlists. Take my current problem. All <SPAN 
class=370224711-07012004>I want to 
do is store StockNumbers in an composite, starting with stock zero in the last 
bar. <FONT 
face=Arial color=#0000ff size=2>I intended to use the other price fields 
for temporary stock specific data, as an easy lookup table. I think quite a 
few users use this method...but see what unexpected results I got. Frankly I 
can't explain what is happening, perhaps you can?
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>If you have time do me a favour and load this simple code into your 
AA. Make sure you have BGEN (stopped trading for QP2 2003/11/12) in your N100. 
Run a Scan on All Quotations, then Old-Backtest and click Equity to see the 
chart. You'll get figure 1, now remove BGEN and repeat, and you'll get 
figure 2. You might also make BGEN current and you'll see that the chart is 
truncated. All this really messed with my data...
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>thanks for any explanation you may be able to 
give,
<FONT face=Arial color=#0000ff 
size=2>herman.
<FONT face=Arial color=#0000ff 
size=2> 
<FONT 
color=#ff0000>Buy=<FONT 
color=#ff0000>Sell=<FONT 
color=#ff0000>Short=<FONT 
color=#ff0000>Cover=<FONT 
color=#ff00ff>0; 
StockNum = Status<FONT 
color=#000000>("StockNum"<FONT 
face="Courier New">); T1[<FONT 
color=#ff0000>BarCount-StockNum-<FONT 
color=#ff00ff>1] = 
StockNum; AddToComposite<FONT 
color=#000000>(T1,"~T1"<FONT 
color=#000000>,"X"<FONT 
face="Courier New">); <FONT 
color=#0000ff>SetForeign(<FONT 
color=#ff00ff>"~T1"); 
Plot(<FONT 
color=#ff0000>C,<FONT 
color=#ff00ff>"T1",<FONT 
color=#ff00ff>4,<FONT 
color=#ff00ff>1|<FONT 
color=#ff00ff>4); 
GraphXSpace = 
5;
<FONT face=Arial color=#0000ff 
size=2> 
<IMG alt="" hspace=0 
src="jpg00000.jpg" align=baseline border=0>
<FONT face=Arial color=#0000ff 
size=2>Figure 1 - This is what you get with BGEN in the 
N100
<IMG alt="" 
hspace=0 src="jpg00001.jpg" align=baseline border=0><FONT 
face=Arial color=#0000ff size=2><FONT 
face=Arial color=#0000ff size=2>Figure 2 - This is how it should 
look!
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2> 

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: DIMITRIS TSOKAKIS 
  [mailto:TSOKAKIS@xxxxxxxxx]Sent: January 7, 2004 7:45 
  PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re: 
  Need a Numerical Stock referenceHerman,The ID 
  will be available if you send all stocks to, say, 
  WL60.Then,Listnum=60;id=0;list = CategoryGetSymbols( 
  categoryWatchlist, listnum );    for( i = 0; ( sym = StrExtract( 
  list, i ) ) != ""; i++ ) 
  {if(sym==Name()){id=i;}}Filter=1;AddColumn(id,"ID");Dimitris 
  Tsokakis--- In amibroker@xxxxxxxxxxxxxxx, "Herman vandenBergen" 
  <psytek@xxxx> wrote:> Hello,> > Would anybody 
  know if there is a way to assign, or perhaps AB has it already> 
  internally, a permanent numerical ID to stocks?> > What I need 
  is a fast NumericalStockID <-> Symbol conversion routine 
  (DLL?).> Would it be possible to convert a Symbol's ASCII string to a 
  number within> the processing range of AB? I don't like tables 
  because they have to be> maintained, loaded and saved.> 
  > It is so much easier to work with permanent reference numbers as 
  they can be> stored and manipulated in numerical arrays.> 
  > Status("StockNum") doesn't work for me because it changes with the 
  watchlist> or when a stock drops out half-way during an AA 
  operation, I found that out> the hard way :-(> > Are 
  there any rules that govern the creation/issue of stock symbols?> 
  > many thanks for any help you can give,> 
  herman.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.


Attachment: Description: ""

Attachment: Description: ""