PureBytes Links
Trading Reference Links
|
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",
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-1<FONT
face="Courier New" size=1>] OR Cc[i] < <FONT face="Courier New"
color=#ff00ff size=1>0.92<FONT face="Courier New"
size=1>*Cc[i-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@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.
|