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

Re: [amibroker] Market Makers ?



PureBytes Links

Trading Reference Links




Hi Jayson, 
 
Thanks for the reply.  I caught the missing quotes right 
after sending the e-mail.  
 
What I'm trying to do is to erase a bad value in the composite 
and replace it with the previous value hence the assignment in the last line 
(which doesn't work).  I am now trying to replace the composite array with 
the 'corrected' cc array as I don't know how to replace a single element in the 
composite.
 
thanks again
lou howard
<BLOCKQUOTE dir=ltr 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Jayson 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Monday, April 19, 2004 11:41 
  PM
  Subject: RE: [amibroker] Help with a 
  Composite Filter
  <FONT 
  size=2>
  <FONT face=Arial color=#0000ff 
  size=2>Lou,
  Your 
  error comes from a syntax error in line 1. note that field information in a 
  foreign call requires quotes, so..
  Cc = Foreign(<FONT 
  color=#ff00ff>"~Low Cap Count", <SPAN 
  class=049193703-20042004>"C<SPAN 
  class=049193703-20042004>", fixup = 
  0);
   
  I am a bit lost as to what 
  you are trying to do in the last line but for one thing you would need to make 
  an assignment, something like X=bla, bla. that in its self does not fix the 
  problem. What are you trying to do??
  Regards,Jayson 
  
    <FONT face=Tahoma 
    size=2>-----Original Message-----From: lhoward121@xxxxxxxxxxxxx 
    [mailto:lhoward121@xxxxxxxxxxxxx]Sent: Monday, April 19, 2004 
    11:18 PMTo: AmiBroker GroupSubject: [amibroker] Help 
    with a Composite Filter
     
    I want to filter a composite to get rid of irregularities 
    caused by bad data.  The following code does not work.  The first 
    line gives a "bad arguments" error so I havn't gotten beyond it yet.  
    There is also a question on the validity of the last line assigning a value 
    from cc[i] to the composite.  Any help or thoughts would be 
    appreciated.
     
    lou howard
    
    Cc = Foreign<FONT 
    size=1>("~Low Cap Count"<FONT 
    size=1>, C, fixup = 
    0<FONT 
    size=1>);
    for (i = <FONT 
    face="Courier New" color=#ff00ff size=1>1<FONT face="Courier New" 
    size=1>; i < BarCount -1 ; i++)
    {
    <FONT face="Courier New" color=#800000 
    size=1>    if 
    (Cc[i] > <FONT face="Courier New" color=#ff00ff 
    size=1>1.08*Cc[i-<FONT 
    face="Courier New" color=#ff00ff size=1>1<FONT face="Courier New" 
    size=1>] OR Cc[i] < <FONT face="Courier New" color=#ff00ff 
    size=1>0.92*Cc[i-<FONT 
    face="Courier New" color=#ff00ff size=1>1<FONT face="Courier New" 
    size=1>]);
    Cc[i] = Cc[i-<FONT face="Courier New" color=#ff00ff 
    size=1>1];<FONT 
    face="Courier New" color=#0000ff size=1>
    <FONT color=#0000ff 
    size=1>Foreign("~Low 
    Cap Count", C, <FONT color=#ff00ff 
    size=1>0)[i] = Cc[i];<FONT 
    face="Courier New" size=1>
    }
     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 
    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 
    


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 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 the Yahoo! Terms of Service.