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

Re: [amibroker] VBScript to automate back test and export of tradelist.



PureBytes Links

Trading Reference Links




Guess it's too late in the evening, anyway, corrected the 
first line error (left out a pair of quote marks):
 
Should be : Cc = Foreign<FONT 
size=1>("~Low Cap Count", 
"C", fixup = 
0<FONT 
size=1>);
Now just working on the last line assignment.
lou howard
 
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Lou 
  H 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">AmiBroker Group 
  Sent: Monday, April 19, 2004 11:17 
  PM
  Subject: [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 = <FONT 
  face="Courier New" color=#ff00ff size=1>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++)
  {
      
  if (Cc[i] > <FONT 
  face="Courier New" color=#ff00ff size=1>1.08<FONT face="Courier New" 
  size=1>*Cc[i-<FONT face="Courier New" color=#ff00ff 
  size=1>1] OR Cc[i] < 
  0.92<FONT 
  face="Courier New" size=1>*Cc[i-<FONT face="Courier New" color=#ff00ff 
  size=1>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@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.