PureBytes Links
Trading Reference Links
|
<SPAN
class=463152205-08052003>Markus,
I
forgot to answer question 2. I am not sure......... I still think the cleaner
way is to apply the filter in QP then export the list and bring his exact list
into AB as a watchlist. When creating the composites simply scan the watchlist.
It will be faster as AB does not need to clunk through the entire database, only
the stocks you want......
Regards,
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: funnybiz@xxxxxx
[mailto:funnybiz@xxxxxx]Sent: Wednesday, May 07, 2003 6:33
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker]
Plotforeign
Jayson,
donīt wanna cause you a headache. I never thought
creating the IM200īs in AB would be such a big deal.
Well, here comes the code:
1./ in indicator builder
sym="~"+IndustryID(1);
C=Foreign(sym,"C");
O=Foreign(sym,"o");
H=Foreign(sym,"h");
L=Foreign(sym,"l");
V=Foreign(sym,"V");
I=Foreign(sym,"I");
x=C/I;
PlotForeign("x",sym,colorRed,styleLine|styleOwnScale);
2./ in exploration<FONT
color=#000000 face="Courier New">
Filter=Minimum=<FONT
color=#0000ff face="Courier New">MA<FONT color=#6600aa
face="Courier New">(<FONT color=#000000
face="Courier New">Volume<FONT color=#6600aa
face="Courier New">,50<FONT
color=#6600aa face="Courier New">)>=<FONT color=#ff00ff
face="Courier New">20000
AND<FONT
color=#6600aa face="Courier New"> <FONT color=#000000
face="Courier New">Close<FONT color=#6600aa
face="Courier New">>=<FONT color=#ff00ff
face="Courier New">5.00
AND<FONT
color=#6600aa face="Courier New"> <FONT color=#0000ff
face="Courier New">StrLeft<FONT color=#6600aa
face="Courier New">(<FONT color=#0000ff
face="Courier New">Name<FONT color=#6600aa
face="Courier New">(),<FONT color=#ff00ff
face="Courier New">1) !=
"!"<FONT color=#6600aa
face="Courier New"> <FONT color=#000000
face="Courier New">AND
(StrRight<FONT
color=#6600aa face="Courier New">(<FONT color=#0000ff
face="Courier New">Name<FONT color=#6600aa
face="Courier New">(),<FONT color=#ff00ff
face="Courier New">2) !=
" P"<FONT color=#6600aa
face="Courier New">);
sym="~"<FONT
color=#6600aa face="Courier New">+<FONT color=#0000ff
face="Courier New">IndustryID<FONT color=#6600aa
face="Courier New">(1<FONT
color=#6600aa face="Courier New">); <FONT color=#0000ff
face="Courier New">
AddToComposite(<FONT
color=#000000 face="Courier New">Filter<FONT color=#6600aa
face="Courier New"> * <FONT color=#000000
face="Courier New">C<FONT color=#6600aa
face="Courier New">,sym,<FONT color=#ff00ff
face="Courier New">"C"<FONT color=#6600aa
face="Courier New">);
AddToComposite(<FONT
color=#000000 face="Courier New">Filter<FONT color=#6600aa
face="Courier New"> * <FONT color=#000000
face="Courier New">O<FONT color=#6600aa
face="Courier New">,sym,<FONT color=#ff00ff
face="Courier New">"O"<FONT color=#6600aa
face="Courier New">);
AddToComposite(<FONT
color=#000000 face="Courier New">Filter<FONT color=#6600aa
face="Courier New"> * <FONT color=#000000
face="Courier New">H<FONT color=#6600aa
face="Courier New">,sym,<FONT color=#ff00ff
face="Courier New">"H"<FONT color=#6600aa
face="Courier New">);
AddToComposite(<FONT
color=#000000 face="Courier New">Filter<FONT color=#6600aa
face="Courier New"> * <FONT color=#000000
face="Courier New">L<FONT color=#6600aa
face="Courier New">,sym,<FONT color=#ff00ff
face="Courier New">"L"<FONT color=#6600aa
face="Courier New">);
AddToComposite(<FONT
color=#000000 face="Courier New">Filter<FONT color=#6600aa
face="Courier New"> * <FONT color=#000000
face="Courier New">V<FONT color=#6600aa
face="Courier New">,sym,<FONT color=#ff00ff
face="Courier New">"V");
AddToComposite(<FONT
color=#000000 face="Courier New">Filter<FONT color=#6600aa
face="Courier New"> * <FONT color=#ff00ff
face="Courier New">1<FONT color=#6600aa
face="Courier New">,sym,<FONT color=#ff00ff
face="Courier New">"I"<FONT color=#6600aa
face="Courier New">);
Buy=<FONT
color=#ff00ff face="Courier New">0<FONT color=#6600aa
face="Courier New">;
I tried to mimic Ronīs requirements
for building the indexing filter as close as I could but am not sure at this
point if itīs just similar or exactly the same.
Anyways, what leaves me puzzled mainly
is that the same index line chart is displayed and n o t the one
making up the group the selected stock belongs to.
Again, donīt cause yourself a
headache.
Appreciate your help and hope to pay back
once!
Markus
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A href=""
title=jcasavant@xxxxxxxxxxxx>Jayson
To: <A
href=""
title=amibroker@xxxxxxxxxxxxxxx>amibroker@xxxxxxxxxxxxxxx
Sent: Wednesday, May 07, 2003 4:22
PM
Subject: RE: [amibroker]
Plotforeign
<SPAN
class=705331914-07052003>Markus,
send
me your whole afl (either here or privately) and I will have a
look
Regards,
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: <A
href="">funnybiz@xxxxxx
[mailto:funnybiz@xxxxxx]Sent: Wednesday, May 07, 2003 10:07
AMTo: <A
href="">amibroker@xxxxxxxxxxxxxxxSubject:
Re: [amibroker] Plotforeign
Graham,
thanks for caring.
Well, my index chart is based on EOD data and
created by addtocomposite.
I rebuild it every day.
The thing that concerns me is that the index
chart (i.e. the group index) is always the same no mater from which index
group the stock comes from.
Do you know what I mean??
Markus
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A href=""
title=gkavanagh@xxxxxxxxxxxxx>Graham
To: <A
href=""
title=amibroker@xxxxxxxxxxxxxxx>amibroker@xxxxxxxxxxxxxxx
Sent: Wednesday, May 07, 2003 1:38
PM
Subject: RE: [amibroker]
Plotforeign
<SPAN
>Is the index a live chart
updated daily with external data, or a composite? If composite then you need
to renew the composite daily
<SPAN
>
<FONT color=teal face="Times New Roman"
size=3><SPAN
>Cheers,<FONT
color=teal size=3><SPAN
>Graham
<FONT
color=#339966 face="Times New Roman" size=2><SPAN
><A
href=""><SPAN
>http://groups.msn.com/ASXShareTrading
<FONT
color=#339966 face="Times New Roman" size=2><SPAN
><A
href=""><SPAN
>http://groups.msn.com/FMSAustralia
<SPAN
>-----Original
Message-----From: <A
href="">funnybiz@xxxxxx [mailto:funnybiz@xxxxxx]
Sent: Wednesday, 7 May
2003 6:36 PMTo: Amibroker
(Yahoo-Forum)Subject:
[amibroker] Plotforeign
<FONT face="Times New Roman"
size=2>
<SPAN
>Hello,
<FONT face="Times New Roman"
size=2>
<SPAN
>Iīve noticed that the index I
wanted to overlay to stock charts remains always the same (at least looks
like).
<FONT face="Times New Roman"
size=2>
<SPAN
>Could someone please tell me
why?
<FONT face="Times New Roman"
size=2>
<SPAN
>Thanks a
lot
<FONT face="Times New Roman"
size=2>
<SPAN
>Markus
<FONT face="Times New Roman"
size=2>
<SPAN
>- - - - -
<FONT face="Times New Roman"
size=2>
<FONT color=#6600aa face="Courier New"
size=2><SPAN
>sym=<FONT
color=fuchsia face="Courier New"><SPAN
>"~"<FONT
color=#6600aa face="Courier New"><SPAN
>+<FONT
color=blue face="Courier New"><SPAN
>IndustryID<FONT
color=#6600aa face="Courier New"><SPAN
>(<FONT
color=fuchsia face="Courier New"><SPAN
>1<FONT
color=#6600aa face="Courier New"><SPAN
>);
<FONT color=black face="Courier New"
size=2><SPAN
>C<FONT
color=#6600aa face="Courier New"><SPAN
>=<FONT
color=blue face="Courier New"><SPAN
>Foreign<FONT
color=#6600aa face="Courier New"><SPAN
>(sym,<FONT
color=fuchsia face="Courier New"><SPAN
>"C"<FONT
color=#6600aa face="Courier New"><SPAN
>);
<FONT color=black face="Courier New"
size=2><SPAN
>O<FONT
color=#6600aa face="Courier New"><SPAN
>=<FONT
color=blue face="Courier New"><SPAN
>Foreign<FONT
color=#6600aa face="Courier New"><SPAN
>(sym,<FONT
color=fuchsia face="Courier New"><SPAN
>"o"<FONT
color=#6600aa face="Courier New"><SPAN
>);
<FONT color=black face="Courier New"
size=2><SPAN
>H<FONT
color=#6600aa face="Courier New"><SPAN
>=<FONT
color=blue face="Courier New"><SPAN
>Foreign<FONT
color=#6600aa face="Courier New"><SPAN
>(sym,<FONT
color=fuchsia face="Courier New"><SPAN
>"h"<FONT
color=#6600aa face="Courier New"><SPAN
>);
<FONT color=black face="Courier New"
size=2><SPAN
>L<FONT
color=#6600aa face="Courier New"><SPAN
>=<FONT
color=blue face="Courier New"><SPAN
>Foreign<FONT
color=#6600aa face="Courier New"><SPAN
>(sym,<FONT
color=fuchsia face="Courier New"><SPAN
>"l"<FONT
color=#6600aa face="Courier New"><SPAN
>);
<FONT color=black face="Courier New"
size=2><SPAN
>V<FONT
color=#6600aa face="Courier New"><SPAN
>=<FONT
color=blue face="Courier New"><SPAN
>Foreign<FONT
color=#6600aa face="Courier New"><SPAN
>(sym,<FONT
color=fuchsia face="Courier New"><SPAN
>"V"<FONT
color=#6600aa face="Courier New"><SPAN
>);
<FONT color=#6600aa face="Courier New"
size=2><SPAN
>I=<FONT
color=blue face="Courier New"><SPAN
>Foreign<FONT
color=#6600aa face="Courier New"><SPAN
>(sym,<FONT
color=fuchsia face="Courier New"><SPAN
>"I"<FONT
color=#6600aa face="Courier New"><SPAN
>);
<FONT color=#6600aa face="Courier New"
size=2><SPAN
>x=<FONT
color=black face="Courier New"><SPAN
>C<FONT
color=#6600aa face="Courier New"><SPAN
>/I;
<FONT color=blue face="Courier New"
size=2><SPAN
>PlotForeign<FONT
color=#6600aa face="Courier New"><SPAN
>(<FONT
color=fuchsia face="Courier New"><SPAN
>x<FONT
color=#6600aa face="Courier New"><SPAN
>,sym,<FONT
color=black face="Courier New"><SPAN
>colorRed<FONT
color=#6600aa face="Courier New"><SPAN
>,<FONT
color=black face="Courier New"><SPAN
>styleLine<FONT
color=#6600aa face="Courier New"><SPAN
>|<FONT
color=black face="Courier New"><SPAN
>styleOwnScale<FONT
color=#6600aa face="Courier New"><SPAN
>);
<FONT face="Times New Roman"
size=2><SPAN
><FONT
face="Courier New">Send BUG REPORTS to bugs@xxxxxxxxxxxxx<FONT
face="Courier New"><FONT
face="Courier New">Send SUGGESTIONS to
suggest@xxxxxxxxxxxxx<FONT
face="Courier New">-----------------------------------------<FONT
face="Courier New">Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx (Web
page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT
face="Courier New">--------------------------------------------<FONT
face="Courier New">Check group FAQ at: <A
href="">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@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
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
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
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
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
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
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
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
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 the Yahoo! Terms of Service.
|