PureBytes Links
Trading Reference Links
|
Way to go, Hermann, but I still have to work through your idea myself
before knowing exactly what dynamic naming means. Still much to
learn, but I'm glad I'm making progress.
Cheers,
KC
> -----Original Message-----
> From: Herman van den Bergen [mailto:psytek@x...]
> Sent: Tuesday, February 25, 2003 7:36 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: RE: [amibroker] Re: Any way to use more field codes for
composite
> indexes?
>
>
> You also use dynamic naming, i do that often when i want to test
a large
> number of composites for different periods. Save a lot of code
writing...
> Like so:
>
> Pd = 2;
> //AddToComposite(1,"~MCMOCount","X");
> n = Foreign("~MCMOCount","X");
> AddToComposite(scCMO(O,Pd)/n,"~MCMO"+WriteVal(Pd,1.0),"X");
Pd=Pd+1;
> AddToComposite(scCMO(O,Pd)/n,"~MCMO"+WriteVal(Pd,1.0),"X");
Pd=Pd+1;
> AddToComposite(scCMO(O,Pd)/n,"~MCMO"+WriteVal(Pd,1.0),"X");
Pd=Pd+1;
> AddToComposite(scCMO(O,Pd)/n,"~MCMO"+WriteVal(Pd,1.0),"X");
Pd=Pd+1;
> // .... copy-n-past as many lines as you like, each line will
create an
> additional composite, each composite-name will have an incrementing
number
> appended to its name.
>
>
> Herman
>
> -----Original Message-----
> From: Graham [mailto:gkavanag@x...]
> Sent: Tuesday, February 25, 2003 4:17 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: RE: [amibroker] Re: Any way to use more field codes for
composite
> indexes?
>
>
> OK some characters would not advisable, but could you not use
> "COMPOSITE"+name() as an example?
>
> Cheers,
> Graham
> http://groups.msn.com/ASXShareTrading
> http://groups.msn.com/FMSAustralia
>
> -----Original Message-----
> From: John R [mailto:johnr@x...]
> Sent: Wednesday, 26 February 2003 7:30 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] Re: Any way to use more field codes for
> composite indexes?
>
> Herman
>
> Interesting - underscore is usually down the end of ASCII
collation
> order.
> Do you know if there any other characters which do not have the
expected
> position in ASCII collating sequence?
>
> John
>
> ----- Original Message -----
> From: "Herman van den Bergen" <psytek@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Wednesday, February 26, 2003 2:30 AM
> Subject: RE: [amibroker] Re: Any way to use more field codes for
> composite
> indexes?
>
>
> > It is recommended that you use only "~" as the first character
for
> your
> > composite (see AB Help), a long time ago I got into all kinds of
> trouble
> > using an Underscore.
> >
> > I quote Tomasz: "You should use tilde ~ as a first character of
your
> > composites. Using underscore ( _ ) is not recommended. Why?
> > Symbols beginning with underscore are put at the start of the
symbol
> list
> > this causes that during first scan the first symbol is counted
twice."
> >
> > Herman
> > -----Original Message-----
> > From: Graham [mailto:gkavanag@x...]
> > Sent: Tuesday, February 25, 2003 3:05 PM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: RE: [amibroker] Re: Any way to use more field codes
for
> composite
> > indexes?
> >
> >
> > The "`" is purely an easy way to identify the composites in
the
> symbol
> > tree and so that you do not overwrite an existing symbol. You
can
> use
> > anything, or nothing as far as I know.
> >
> > Cheers,
> > Graham
> > http://groups.msn.com/ASXShareTrading
> > http://groups.msn.com/FMSAustralia
> >
> > -----Original Message-----
> > From: ujr4s <ujr4s@xxxx> [mailto:ujr4s@x...]
> > Sent: Wednesday, 26 February 2003 6:56 AM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] Re: Any way to use more field codes for
> composite
> > indexes?
> >
> > I thought there is something special about "~". I'll
try "~X" to
> > see if that works. Thanks.
> >
> > KC
> >
> >
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanag@xxxx>
wrote:
> > > KC
> > > Not certain exactly what you want to create, but why not
just add
> > > another letter or something to the name
> > > ASectCount= "~X" + "SectorID(1);
> > >
> > >
> > > Cheers,
> > > Graham
> > > http://groups.msn.com/ASXShareTrading
> > > http://groups.msn.com/FMSAustralia
> > >
> > > -----Original Message-----
> > > From: ujr4s <ujr4s@xxxx> [mailto:ujr4s@x...]
> > > Sent: Wednesday, 26 February 2003 6:29 AM
> > > To: amibroker@xxxxxxxxxxxxxxx
> > > Subject: [amibroker] Re: Any way to use more field codes for
> > composite
> > > indexes?
> > >
> > >
> > > Thanks Graham, as always. But I need further help with
this.
> > > Exactly how do I create a separate sector composite, since
I'm
> > using
> > > SectorID(1) to automatically generate composite indexes in
all
> > > sectors?
> > >
> > >
> > > AllSectCount= "~" + "SectorID(1);
> > >
> > > Ab20MA=C>MA(20, C);
> > > Ab50MA, etc.....
> > >
> > > AddtoComposite(Ab20MA, AllSectCount,"O");
> > > AddtoComposite(Ab50MA, AllSectCount,"H");
> > > etc.....
> > >
> > > It seems to me that whatever I do, it will automatically
assign to
> > > the same sector indexes. And once I use up these six field
codes,
> > > then I'm out of luck. Of course, if I create composites
for each
> > of
> > > these sectors and then scan individually, then I should be
OK.
> But
> > > you are talking about 31 sectors in the TC2K database!!
> > >
> > > Cheers,
> > > KC
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanag@xxxx>
wrote:
> > > > Create more than one composite.
> > > > You only need to move to the composite the percent number
and
> > > create a
> > > > line chart, so you could get 6 in one composite.
> > > >
> > > > Cheers,
> > > > Graham
> > > > http://groups.msn.com/ASXShareTrading
> > > > http://groups.msn.com/FMSAustralia
> > > >
> > > > -----Original Message-----
> > > > From: ujr4s <ujr4s@xxxx> [mailto:ujr4s@x...]
> > > > Sent: Wednesday, 26 February 2003 5:40 AM
> > > > To: amibroker@xxxxxxxxxxxxxxx
> > > > Subject: [amibroker] Any way to use more field codes for
> composite
> > > > indexes?
> > > >
> > > > Hi, all,
> > > >
> > > > Besides using OHLCVI, is there any other way to
store
> > > > information for composite indexes? Say, I want to look
at the
> > > > percentage of stocks trading above 20, 50, and 200 day
MAs, and
> > so
> > > > on... for all sectors. Since it easily uses up all six
of these
> > > > field codes, is there any way to work around that?
> > > >
> > > > Thanks for tips.
> > > >
> > > > KC
> > > >
> > > >
> > > >
> > > >
> > > > 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
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > > > http://docs.yahoo.com/info/terms/
> > >
> > >
> > > 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
> > >
> > > Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> >
> >
> > 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
> >
> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
> >
> >
> >
> > 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
> >
> > 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
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
>
>
> 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
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
>
>
> 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
>
> Your use of Yahoo! Groups is subject to the 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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|