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

Re: [amibroker] Conversion to Amibroker



PureBytes Links

Trading Reference Links

Graham,
since the order in a WL is alphabetic, a new stock will take the 
respective ID, according to its first letters.
In this logic, the IDs are fresh [and not historical]
I donīt know if Herman needs historical IDs, ie, once MSFT takes the 
ID=145 to be the 145th for ever in the future...
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> The only problem would be if stocks are listed new, delisted or 
change
> names. The watch list of all stocks would then vary
> 
> Cheers,
> Graham
> http://groups.msn.com/asxsharetrading
> http://groups.msn.com/fmsaustralia 
> 
> -----Original Message-----
> From: DIMITRIS TSOKAKIS [mailto:TSOKAKIS@x...] 
> Sent: Wednesday, 7 January 2004 9:19 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Need a Numerical Stock reference
> 
> 
> Herman,
> Did you really try the code [after the instructions] and didnīt 
work 
> reliably ?
> Because it works in my 4.50.6.
> If BEAS is #18 in the superWL60, it will give ID=18 in any 
> exploration [current stock, other WL including BEAS, other group 
> including BEAS etc].
> This ID=18 will be unique for BEAS and, as far as I understood, it 
> was your request.
> Do not forget to move **ALL** stocks into WL60 **BEFORE** any 
> exploration.
> I have no doubt it works !!
> Dimitris Tsokakis
> --- In amibroker@xxxxxxxxxxxxxxx, "Herman vandenBergen" 
<psytek@xxxx> 
> wrote:
> > Thanks DT but that doesn't work reliably.
> > 
> > Your ID is not permanent across watchlist or with changing
> watchlists. Take
> > my current problem. All I want to do is store StockNumbers in an
> composite,
> > starting with stock zero in the last bar. 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?
> > 
> > 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...
> > 
> > thanks for any explanation you may be able to give,
> > herman.
> > 
> > Buy=Sell=Short=Cover=0;
> > StockNum = Status("StockNum");
> > T1[BarCount-StockNum-1] = StockNum; AddToComposite(T1,"~T1","X");
> > SetForeign("~T1");
> > Plot(C,"T1",4,1|4);
> > GraphXSpace = 5;
> > 
> > 
> > Figure 1 - This is what you get with BGEN in the N100
> > 
> > 
> > Figure 2 - This is how it should look!
> > 
> > 
> > 
> >   -----Original Message-----
> >   From: DIMITRIS TSOKAKIS [mailto:TSOKAKIS@x...]
> >   Sent: January 7, 2004 7:45 PM
> >   To: amibroker@xxxxxxxxxxxxxxx
> >   Subject: [amibroker] Re: Need a Numerical Stock reference
> > 
> > 
> >   Herman,
> >   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@xxxx
> >   Send SUGGESTIONS to suggest@xxxx
> >   -----------------------------------------
> >   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
> > 
> >     a.. To visit your group on the web, go to:
> >     http://groups.yahoo.com/group/amibroker/
> > 
> >     b.. To unsubscribe from this group, send an email to:
> >     amibroker-unsubscribe@xxxxxxxxxxxxxxx
> > 
> >     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of
> Service.
> 
> 
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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:
>  http://docs.yahoo.com/info/terms/


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 ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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:
 http://docs.yahoo.com/info/terms/