PureBytes Links
Trading Reference Links
|
<SPAN
><SPAN
class=329381622-09112003>You have removed the rest of this code by using /*
before the second IIF. You need the closing */ to end the
ignore.
<SPAN
><SPAN
class=329381622-09112003>
<SPAN
><SPAN
class=329381622-09112003>Therefor you need to close out the line , plus your MA
does not have brackets in correct place, and you need the IIF to be completed
for true and false conditions value, and the IIF requires a variable name for it
to apply to.
<SPAN
><SPAN
class=329381622-09112003> <FONT face="Courier New"
size=2><SPAN
>
<FONT
face="Courier New" size=2><SPAN
>Filter<FONT
face="Courier New" color=blue size=2><SPAN
>=<FONT
face="Courier New" color=black size=2><SPAN
>C<FONT
face="Courier New" color=blue size=2><SPAN
>>=<FONT
face="Courier New" color=fuchsia size=2><SPAN
>12<FONT
face="Courier New" color=blue size=2><SPAN
>
<SPAN
>AND<FONT
face="Courier New" color=blue size=2><SPAN
>
<FONT face="Courier New" color=blue
size=2><SPAN
>MA<SPAN
>(<FONT
face="Courier New" color=black size=2><SPAN
>V<FONT
face="Courier New" color=blue size=2><SPAN
>,<FONT
face="Courier New" color=fuchsia size=2><SPAN
>50<FONT
face="Courier New" color=blue size=2><SPAN
>)>=<FONT
face="Courier New" color=fuchsia size=2><SPAN
>100000<FONT
face="Courier New" color=blue size=2><SPAN
>;
<FONT
face="Courier New" color=blue size=2><SPAN
>
<SPAN
class=GramE><SPAN
><SPAN
class=329381622-09112003>xyz =
IIf<SPAN
>(<SPAN
class=329381622-09112003> <SPAN
>Cross<SPAN
>(CCI<SPAN
>(<SPAN
>40<FONT
color=blue><SPAN
>),<FONT
color=blue><SPAN
>MA<SPAN
>(CCI<SPAN
>(<SPAN
>40<SPAN
class=329381622-09112003><FONT
color=#0000ff>)<SPAN
>,<FONT
color=fuchsia><SPAN
>5<FONT
color=blue><SPAN
>) <SPAN
>AND<SPAN
class=329381622-09112003> <FONT
color=blue><SPAN
>CCI<SPAN
>(<FONT
color=fuchsia><SPAN
>40<FONT
color=blue><SPAN
>)<=-<FONT
color=fuchsia><SPAN
>100<SPAN
>,<SPAN
class=329381622-09112003> <SPAN
>4<SPAN
><SPAN
class=329381622-09112003> , WhatIfFalse)<SPAN
class=329381622-09112003> <FONT
color=#ff0000>;
Hope this
helps
Cheers,Graham<A
href="">http://groups.msn.com/ASXShareTrading<A
href="">http://groups.msn.com/FMSAustralia
<FONT
face=Tahoma size=2>-----Original Message-----From: bflori
[mailto:bflori@xxxxxxx] Sent: Monday, 10 November 2003 5:49
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker]
Formula
<SPAN
>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.
<SPAN
>Can anyone tell me what I am doing
wrong? Thanks.
<SPAN
>
<FONT
face="Courier New" color=black size=2><SPAN
>Filter<FONT
face="Courier New" color=blue size=2><SPAN
>=<FONT
face="Courier New" color=black size=2><SPAN
>C<FONT
face="Courier New" color=blue size=2><SPAN
>>=<FONT
face="Courier New" color=fuchsia size=2><SPAN
>12<FONT
face="Courier New" color=blue size=2><SPAN
>
<SPAN
>AND<FONT
face="Courier New" color=blue size=2><SPAN
>
<FONT face="Courier New" color=blue
size=2><SPAN
>MA<SPAN
>(<FONT
face="Courier New" color=black size=2><SPAN
>V<FONT
face="Courier New" color=blue size=2><SPAN
>,<FONT
face="Courier New" color=fuchsia size=2><SPAN
>50<FONT
face="Courier New" color=blue size=2><SPAN
>)>=<FONT
face="Courier New" color=fuchsia size=2><SPAN
>100000<FONT
face="Courier New" color=blue size=2><SPAN
>;
<FONT
face="Courier New" color=blue size=2><SPAN
>
<SPAN
class=SpellE><FONT face="Courier New" color=blue
size=2><SPAN
>IIf<SPAN
class=GramE><SPAN
>(<FONT
face="Courier New" color=blue size=2><SPAN
>Cross<SPAN
>(CCI<SPAN
>(<FONT face="Courier New"
color=fuchsia size=2><SPAN
>40<FONT
face="Courier New" color=blue size=2><SPAN
>),<FONT
face="Courier New" color=blue size=2><SPAN
>MA<SPAN
>(CCI<SPAN
>(<FONT face="Courier New"
color=fuchsia size=2><SPAN
>40<FONT
face="Courier New" color=blue size=2><SPAN
>,<FONT
face="Courier New" color=fuchsia size=2><SPAN
>5<FONT
face="Courier New" color=blue size=2><SPAN
>))
<SPAN
>AND<FONT
face="Courier New" color=blue size=2><SPAN
>
<FONT
face="Courier New" color=blue size=2><SPAN
>CCI<SPAN
>(<FONT
face="Courier New" color=fuchsia size=2><SPAN
>40<FONT
face="Courier New" color=blue size=2><SPAN
>)<=-<FONT
face="Courier New" color=fuchsia size=2><SPAN
>100<FONT
face="Courier New" color=blue size=2><SPAN
>,<FONT
face="Courier New" color=fuchsia size=2><SPAN
>4<FONT
face="Courier New" color=blue size=2><SPAN
>),
<FONT
face="Courier New" color=blue size=2><SPAN
>
<FONT
face="Courier New" color=blue size=2><SPAN
>/*<SPAN
class=SpellE>IIf<SPAN
class=GramE>(Cross(CCI(40),MA(CCI(40,5))
AND
<FONT
face="Courier New" color=blue size=2><SPAN
>CCI(<FONT
face="Courier New" color=blue size=2><SPAN
>40)>-100
AND CCI(40)<=0,3),
<FONT
face="Courier New" color=blue size=2><SPAN
>
<SPAN
class=SpellE><FONT face="Courier New" color=blue
size=2><SPAN
>IIf<SPAN
class=GramE><SPAN
>(<FONT
face="Courier New" color=blue size=2><SPAN
>Cross(CCI(40),MA(CCI(40),5))
AND
<FONT
face="Courier New" color=blue size=2><SPAN
>CCI(<FONT
face="Courier New" color=blue size=2><SPAN
>40)>0 AND
CCI(40)<=100,2),
<FONT
face="Courier New" color=blue size=2><SPAN
>
<SPAN
class=SpellE><FONT face="Courier New" color=blue
size=2><SPAN
>IIf<SPAN
class=GramE><SPAN
>(<FONT
face="Courier New" color=blue size=2><SPAN
>Cross(CCI(40),MA(CCI(40),5))
AND
<FONT
face="Courier New" color=blue size=2><SPAN
>CCI(<FONT
face="Courier New" color=blue size=2><SPAN
>40)>100,1),
<FONT
face="Courier New" color=blue size=2><SPAN
>
<SPAN
class=SpellE><FONT face="Courier New" color=blue
size=2><SPAN
>IIf<SPAN
class=GramE><SPAN
>(<FONT
face="Courier New" color=blue size=2><SPAN
>Cross(CCI(40),MA(CCI(40,5))
AND
<FONT
face="Courier New" color=blue size=2><SPAN
>CCI(<FONT
face="Courier New" color=blue size=2><SPAN
>40)<=-100,-1),
<FONT
face="Courier New" color=blue size=2><SPAN
>
<SPAN
class=SpellE><FONT face="Courier New" color=blue
size=2><SPAN
>IIf<SPAN
class=GramE><SPAN
>(<FONT
face="Courier New" color=blue size=2><SPAN
>Cross(MA(CCI(40),5),CCI(40))
AND
<FONT
face="Courier New" color=blue size=2><SPAN
>CCI(<FONT
face="Courier New" color=blue size=2><SPAN
>40)>-100
AND CCI(40)<=0,-2),
<FONT
face="Courier New" color=blue size=2><SPAN
>
<SPAN
class=SpellE><FONT face="Courier New" color=blue
size=2><SPAN
>IIf<SPAN
class=GramE><SPAN
>(<FONT
face="Courier New" color=blue size=2><SPAN
>Cross(MA(CCI(40),5),CCI(40))
AND
<FONT
face="Courier New" color=blue size=2><SPAN
>CCI(<FONT
face="Courier New" color=blue size=2><SPAN
>40)>0 AND
CCI(40)<=100,-3),
<FONT
face="Courier New" color=blue size=2><SPAN
>
<SPAN
class=SpellE><FONT face="Courier New" color=blue
size=2><SPAN
>IIf<SPAN
class=GramE><SPAN
>(<FONT
face="Courier New" color=blue size=2><SPAN
>Cross(MA(CCI(40),5),CCI(40))
AND
<FONT face="Courier New" color=blue
size=2><SPAN
>CCI(<FONT
face="Courier New" color=blue size=2><SPAN
>40)>100,-4,0;<FONT
face=Arial size=2><SPAN
>
<SPAN
>
<FONT
face=BrushScrD size=3><SPAN
>Bob
Flori
<SPAN
>
<SPAN
><A
href=""><SPAN
>bflori@xxxxxxx<SPAN
>
<SPAN
>
<SPAN
> <FONT
face=BrushScrD><SPAN
>
<SPAN
> 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
Your use of Yahoo! Groups is subject to the <A
href="">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.
|