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

RE: [amibroker] OK YESTERDAY, BUT NOT TODAY



PureBytes Links

Trading Reference Links




A hint for when you are 
creating long list of conditions would be to break them down into shorter line 
lengths rather than one long sprawling line. It does not matter if the formula 
line has line breaks in it. Having extra spaces within the formulae help as well 
when you need to check, and maybe allign sets of brackets. I also try to use 
line breaks for nested statements like multiple IIF's to get the number of end 
brackets correct.
eg.
MA(key,<FONT 
color=#ff00ff>5)<= MA(key,<FONT 
color=#ff00ff>6)    
AND MA(key,<FONT 
color=#ff00ff>6)<= MA(key,<FONT 
color=#ff00ff>7)   <SPAN 
class=079064205-05072003> AND <FONT 
color=#0000ff>MA(key,7)<=<FONT 
color=#0000ff>MA(key,9)<SPAN 
class=079064205-05072003>    AND 
MA(key,<FONT 
color=#ff00ff>9) <= MA(key,<FONT 
color=#ff00ff>11) AND MA(key,<FONT 
color=#ff00ff>11)<= MA(key,<FONT 
color=#ff00ff>14) AND MA(key,<FONT 
color=#ff00ff>14)<=MA(key,<FONT 
color=#ff00ff>16) AND 
MA(key2,<FONT 
color=#ff00ff>1)<=MA(key2,<FONT 
color=#ff00ff>2) AND <SPAN 
class=079064205-05072003>................etc 

 
I find this helps me with 
the editing and checking for errors<?xml:namespace prefix = 
o ns = "urn:schemas-microsoft-com:office:office" /><o:SmartTagType 
name="PersonName" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags">





<B 
><I 
><SPAN 
>Cheers<SPAN 
class=GramE>,<?xml:namespace prefix = st1 ns = 
"urn:schemas-microsoft-com:office:smarttags" /><st1:PersonName 
><B 
><I 
><SPAN 
>Graham
<A 
href=""><SPAN 
>http://groups.msn.com/ASXShareTrading
<A 
href=""><SPAN 
>http://groups.msn.com/FMSAustralia

  
  <FONT 
  face=Tahoma size=2>-----Original Message-----From: mrdavis9 
  [mailto:mrdavis9@xxxxxxxxxx] Sent: Saturday, 5 July 2003 1:07 
  PMTo: amibrokeryahoogroupsCc: jeff 
  davisSubject: [amibroker] OK YESTERDAY, BUT NOT 
  TODAY
  
   Yesterday, I ran this scan one time and it 
  worked.    Today,I tried to run it and I got a syntax error 
  message.  The semicolon that is behind C*V>=200000 was 
  highlighted.    I am AFL challenged, but it looks perfect to 
  me.  I would appreciate any observations regarding what is wrong with 
  it.  Ron D
   
   
  key=RSIa<FONT 
  size=1>(C,14); 
  
  key2=OBV();
  Buy = MA<FONT 
  size=1>(key,2<FONT 
  size=1>)<=MA<FONT 
  size=1>(key,3) 
  AND MA<FONT 
  size=1>(key,3)<= 
  MA(key,<FONT 
  color=#ff00ff size=1>4) AND <FONT 
  color=#0000ff size=1>MA(key,<FONT color=#ff00ff 
  size=1>4)<= <FONT color=#0000ff 
  size=1>MA(key,<FONT color=#ff00ff 
  size=1>5) AND <FONT color=#0000ff 
size=1>
  MA(key,5<FONT 
  size=1>)<= MA<FONT 
  size=1>(key,6) 
  AND MA<FONT 
  size=1>(key,6)<= 
  MA(key,<FONT 
  color=#ff00ff size=1>7)AND <FONT 
  color=#0000ff size=1>MA(key,<FONT color=#ff00ff 
  size=1>7)<=<FONT color=#0000ff 
  size=1>MA(key,<FONT color=#ff00ff 
  size=1>9) AND <FONT color=#0000ff 
  size=1>MA(key,<FONT color=#ff00ff 
  size=1>9) <= <FONT color=#0000ff 
  size=1>MA(key,<FONT color=#ff00ff 
  size=1>11) AND <FONT color=#0000ff 
  size=1>MA(key,<FONT color=#ff00ff 
  size=1>11)<= <FONT color=#0000ff 
  size=1>MA(key,<FONT color=#ff00ff 
  size=1>14) AND <FONT color=#0000ff 
  size=1>MA(key,<FONT color=#ff00ff 
  size=1>14)<=<FONT color=#0000ff 
  size=1>MA(key,<FONT color=#ff00ff 
  size=1>16) AND <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>1)<=<FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>2) AND <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>2)<=<FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>3) AND <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>3)<=<FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>4) AND <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>4)<= <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>5) AND <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>5)<= <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>6) AND <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>6)<= <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>7) AND <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>7)<= <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>8) AND <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>8)<= <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>9) AND <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>9)<= <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>10) AND <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>10)<= <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>12) AND <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>12)<= <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>15)AND <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>15<= <FONT color=#0000ff 
  size=1>MA(key2,<FONT color=#ff00ff 
  size=1>20)AND C*V>=<FONT 
  color=#ff00ff size=1>200000; 
   
   
  Sell=(0<FONT 
  size=1>);
  PlotShapes( shapeUpArrow * Buy + 
  shapeDownArrow * Sell, <FONT color=#0000ff 
  size=1>IIf( Buy, colorGreen, colorRed 
  ) );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.