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

Re: [amibroker] Formula



PureBytes Links

Trading Reference Links




Bob,
 
A couple of things:
 
First....your IIf() should be assigned, something 
like:
 
Condition=IIF();
 
Second....The structure for the IIf() is the 
following:
 
Condition= IIF(condition, TrueArray, 
FalseArray);
 
Anthony
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  bflori 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Sunday, November 09, 2003 4:49 
  PM
  Subject: [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. 
  
<BLOCKQUOTE 
><FONT 
  face="Courier New">---Outgoing mail is certified Virus 
  Free.Checked by AVG anti-virus system (<A 
  href="">http://www.grisoft.com).Version: 6.0.537 
  / Virus Database: 332 - Release Date: 
11/6/2003






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.