PureBytes Links
Trading Reference Links
|
Bill$B!G(Bs response to you is only partially
correct, depending on what you intend$B!D(B
The commas make the parser think it is one
long, assembled collection of IIFs and if that is so, the end needs many right
parentheses to complete, otherwise, try Bill$B!G(Bs suggestion.
Also, you have the first have of a global
comments --- the $B!H(B/*$B!I(B in the third line. There is never a closing $B!H(B*/$B!I(B so
that is probably messing things up.
You can look at the color coding when you
are putting these statements in the parser---all green means that a comment
symbol is present.
Ken
-----Original Message-----
From: bflori
[mailto:bflori@xxxxxxx]
Sent: Sunday,
November 09, 2003<span
> <font
size=2 face=Tahoma>4:49 PM<font
size=2 face=Tahoma>
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Formula
I$B!G(Bm attempting to write this code for an exploration. When I
get to the end, it says syntax error and puts the black curser on the final
character, the semi-colon.
Can anyone tell me what I am doing wrong? Thanks.
<font size=2 color=black
face="Courier New">Filter<font size=2
color=blue face="Courier New">=<font size=2 color=black
face="Courier New">C<font size=2 color=blue
face="Courier New">>=<font size=2 color=fuchsia
face="Courier New">12<span
>
<span
>AND<font
size=2 color=blue face="Courier New"> <font size=2
color=blue face="Courier New">MA(<font
size=2 color=black face="Courier New">V<font size=2
color=blue face="Courier New">,<font size=2 color=fuchsia
face="Courier New">50<span
>)>=<font
size=2 color=fuchsia face="Courier New">100000<font size=2
color=blue face="Courier New">;
<font size=2 color=blue
face="Courier New">
<font size=2 color=blue
face="Courier New">IIf(Cross<span
>(CCI(<font
size=2 color=fuchsia face="Courier New">40<font size=2
color=blue face="Courier New">),<font size=2 color=blue
face="Courier New">MA(CCI<span
>(<font size=2 color=fuchsia
face="Courier New">40<span
>,<font
size=2 color=fuchsia face="Courier New">5<font size=2
color=blue face="Courier New">)) <font size=2 color=black
face="Courier New">AND
<font size=2 color=blue
face="Courier New">CCI(<font
size=2 color=fuchsia face="Courier New">40<font size=2
color=blue face="Courier New">)<=-<font size=2
color=fuchsia face="Courier New">100<font size=2 color=blue
face="Courier New">,<font size=2 color=fuchsia
face="Courier New">4<span
>),
<font size=2 color=blue
face="Courier New">
<font size=2 color=blue
face="Courier New">/*IIf(Cross(CCI(40),MA(CCI(40,5)) AND
<font size=2 color=blue
face="Courier New">CCI(40)>-100 AND CCI(40)<=0,3),
<font size=2 color=blue
face="Courier New">
<font size=2 color=blue
face="Courier New">IIf(Cross(CCI(40),MA(CCI(40),5)) AND
<font size=2 color=blue
face="Courier New">CCI(40)>0 AND CCI(40)<=100,2),
<font size=2 color=blue
face="Courier New">
<font size=2 color=blue
face="Courier New">IIf(Cross(CCI(40),MA(CCI(40),5)) AND
<font size=2 color=blue
face="Courier New">CCI(40)>100,1),
<font size=2 color=blue
face="Courier New">
<font size=2 color=blue
face="Courier New">IIf(Cross(CCI(40),MA(CCI(40,5)) AND
<font size=2 color=blue
face="Courier New">CCI(40)<=-100,-1),
<font size=2 color=blue
face="Courier New">
<font size=2 color=blue
face="Courier New">IIf(Cross(MA(CCI(40),5),CCI(40)) AND
<font size=2 color=blue
face="Courier New">CCI(40)>-100 AND CCI(40)<=0,-2),
<font size=2 color=blue
face="Courier New">
<font size=2 color=blue
face="Courier New">IIf(Cross(MA(CCI(40),5),CCI(40)) AND
<font size=2 color=blue
face="Courier New">CCI(40)>0 AND CCI(40)<=100,-3),
<font size=2 color=blue
face="Courier New">
<font size=2 color=blue
face="Courier New">IIf(Cross(MA(CCI(40),5),CCI(40)) AND
<span
>CCI(40)>100,-4,0;
Bob Flori
<span
>bflori@xxxxxxx
<font size=2
face="Courier New">Send BUG REPORTS to
bugs@xxxxxxxxxxxxx<span
>
Send 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 Yahoo!
Terms of Service.
Yahoo! Groups Sponsor
ADVERTISEMENT
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.
|