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

RE: [amibroker] Formula



PureBytes Links

Trading Reference Links









There is no matching Graham and Jayson,
and several others who offer good, consistent, timely help—and did I mention
accurate help.

 

I should shut up and just ASK for help
instead of …..

 

Ken

 

-----Original Message-----
From: Ken Close
[mailto:closeks@xxxxxxxx] 
Sent: Sunday, November 09, 2003
5:29 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Formula

 

Bill’s response to you is only partially
correct, depending on what you intend…

 

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’s suggestion.

 

Also, you have the first have of a global
comments --- the “/*” in the third line.  There is never a closing “*/” 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
4:49 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Formula

 

I’m 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=3
face="Times New Roman"> 

Send BUG REPORTS to bugs@xxxxxxxxxxxxx<font size=2
face="Courier New">
Send SUGGESTIONS to
suggest@xxxxxxxxxxxxx<span
>
-----------------------------------------<font
size=2 face="Courier New">
Post AmiQuote-related messages ONLY
to: amiquote@xxxxxxxxxxxxxxx <span
>
(Web page: <a
href="">http://groups.yahoo.com/group/amiquote/messages/)<font
size=2 face="Courier New">
--------------------------------------------<font
size=2 face="Courier New">
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
face="MS PGothic"> 

Your
use of Yahoo! Groups is subject to the <a
href="">Yahoo! Terms of Service.<font
face="MS PGothic"> 







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<font
face="MS PGothic"> 

Your use of Yahoo! Groups is subject
to the Yahoo! Terms of Service.<font
face="MS PGothic"> 










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.