Ly, In case this is still regarding your post in message #118399 (how to trade only top percentile items under multiple criteria), I've gone and added a possible solution to that one for you.
No, it's not a generic solution to extra data per symbol. But, maybe it will help for your percentile quest :) Mike --- In [email protected], "loveyourenemynow" <[EMAIL PROTECTED]> wrote: > > For convenience I would like to store some extra info for each symbol, > and I would like it to be a vector, having a value for each bar, which > could be accessed at any time via foreign functions. > At the moment this is possible only for OHLCV ,and I think those > variable are protected). > I could create an extra ticker for each symbol,in which to store up > to 5 info(using OCHLV), but I was thinking if there is a better way. > > Basically it is equivalent to set up a table, so it can be achieved by > using an external plugin or object, but even in that case I would need > to store at least one info(a handle) to link to the correct row/column > in the external table, so at least one extra info is necessary any > way(unless the symbol is used but that you need a system to manage not > numerical indices for arrays, like a string list of this type > sym1,1,sym2,2 to scan through to get the right index) > > All this is rather cumbersome but conceptually is simply the use of > matrices. > > This is a very general problem, which if solved allows to do > basically to do anything we want with vectors and matrices, and it is > also a major limitation. > Also a related question: when addcomposite is used on different time > frames does it have to be "scanned" each time in advance. > I thought time compression would automatically take care of it if > calculated just once at the lowest time resolution but I doens't seem so. > > Thanks > Ly >
