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

RE: [amibroker] Plotforeign



PureBytes Links

Trading Reference Links




<SPAN 
class=522480503-09052003>Markus,
It is 
ALWAYS simple when you know how to do it  :))
 
Regards,
 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: funnybiz@xxxxxx 
[mailto:funnybiz@xxxxxx]Sent: Thursday, May 08, 2003 12:22 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker] 
Plotforeign
Jayson,
 
you definitely made my day!!!!!
 
THAT was exactly what I had been trying to 
do!!!
 
I really want to thank you for this 
one.
 
Thanks, thanks, thanks!!!
 
Markus
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  <A href="" 
  title=jcasavant@xxxxxxxxxxxx>Jayson 
  To: <A 
  href="" 
  title=amibroker@xxxxxxxxxxxxxxx>amibroker@xxxxxxxxxxxxxxx 
  Sent: Thursday, May 08, 2003 7:20 
AM
  Subject: RE: [amibroker] 
Plotforeign
  
  <SPAN 
  class=578280605-08052003>Markus,
  You 
  are making it far more complex then it needs to be. If I understand correctly 
  you wish to overlay a line chart on top of your regular price plot. Is this 
  correct? If so then there is no need to rename OHLC, simply call your 
  calculation in the plot with foreign
  <SPAN 
  class=578280605-08052003> 
   <FONT 
  color=#0000ff>
  sym="~"+<SPAN 
  class=578280605-08052003>Industryid(1)<FONT 
  color=#282828><FONT color=#0000ff face=Arial 
  size=2>;
   
  Plot(<FONT 
  color=#000000>C<FONT 
  color=#282828>,""<FONT 
  color=#282828>,<FONT 
  color=#000000>colorRed<FONT 
  face=Arial>,<FONT 
  color=#000000>styleCandle<FONT 
  color=#282828>); <A 
  href="">//this line only needed if you are creating a custom 
  indicator, if adding to the built-in price 
  delete
   
  Plot(<FONT 
  color=#0000ff>Foreign(sym,<FONT 
  color=#ff00ff>"C")/<FONT 
  color=#0000ff>Foreign(sym,<FONT 
  color=#ff00ff>"I"<FONT 
  color=#282828>),<FONT 
  color=#ff00ff>"",<FONT 
  color=#000000>colorRed<FONT 
  face=Arial>,<FONT 
  color=#000000>styleLine<FONT 
  face=Arial>|<FONT 
  color=#000000>styleOwnScale<FONT 
  face=Arial size=2>);
   <FONT 
  face=Arial>
  Title=Name<FONT 
  color=#0000ff face=Arial size=2>()+sym;
   
   
  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<FONT color=#6600aa 
  face="Courier New">=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">,<FONT color=#ff00ff 
  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">(<FONT color=#ff00ff 
  face="Courier New">1); 
  
  AddToComposite<FONT color=#6600aa 
  face="Courier New">(<FONT color=#000000 
  face="Courier New">Filter * 
  C<FONT 
  color=#6600aa face="Courier New">,sym,<FONT color=#ff00ff 
  face="Courier New">"C"<FONT color=#6600aa 
  face="Courier New">);
  AddToComposite<FONT color=#6600aa 
  face="Courier New">(<FONT color=#000000 
  face="Courier New">Filter * 
  O<FONT 
  color=#6600aa face="Courier New">,sym,<FONT color=#ff00ff 
  face="Courier New">"O"<FONT color=#6600aa 
  face="Courier New">);
  AddToComposite<FONT color=#6600aa 
  face="Courier New">(<FONT color=#000000 
  face="Courier New">Filter * 
  H<FONT 
  color=#6600aa face="Courier New">,sym,<FONT color=#ff00ff 
  face="Courier New">"H"<FONT color=#6600aa 
  face="Courier New">);
  AddToComposite<FONT color=#6600aa 
  face="Courier New">(<FONT color=#000000 
  face="Courier New">Filter * 
  L<FONT 
  color=#6600aa face="Courier New">,sym,<FONT color=#ff00ff 
  face="Courier New">"L"<FONT color=#6600aa 
  face="Courier New">);
  AddToComposite<FONT color=#6600aa 
  face="Courier New">(<FONT color=#000000 
  face="Courier New">Filter * 
  V<FONT 
  color=#6600aa face="Courier New">,sym,<FONT color=#ff00ff 
  face="Courier New">"V"); 
  
  AddToComposite<FONT color=#6600aa 
  face="Courier New">(<FONT color=#000000 
  face="Courier New">Filter * 
  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,
    <SPAN 
    class=705331914-07052003>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
      <FONT face=Tahoma 
      size=2>-----Original 
      Message-----From: <A 
      href="">funnybiz@xxxxxx [mailto:funnybiz@xxxxxx] 
      Sent: Wednesday, 7 May 
      2003 6:36 PMTo: 
      Amibroker (Yahoo-Forum)<SPAN 
      >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. 
  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.