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

[amibroker] Search Routine for Crossover Point



PureBytes Links

Trading Reference Links




Another screwy byproduct of QuickAFL. Turn QuickAFL off and 
the error goes away.
 
Whenever using looping or accessing individual array elements, 
I always automatically include the line at the top:

SetBarsRequired(1000000,1000000);
so I can leave QuickAFL on.
-CS
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Dave Merrill 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Wednesday, January 28, 2004 11:43 
  PM
  Subject: [amibroker] subscript out of 
  range error unless I do this weird thing
  Can anyone hazard a guess as to why a piece of code I'm 
  working on generatesa subscript out of range error, unless I add a nearly 
  do-nothing line ofcode, which can run *after* everything 
  else?Here's the section of code I think is causing the error. With the 
  last linein place as written, it's fine. Comment that out, you get a 
  subscript out ofrange error on the next to last 
  line.------------------PriceAdjFactor = Param("4-Price Adjust 
  %", 0, -25, 25, .01);BI = BarIndex();SelBI = 
  SelectedValue(BI);PriceReal = C;PriceAdjusted = 
  PriceReal;PriceAdjusted[SelBI] = PriceReal[SelBI] * ((PriceAdjFactor / 
  100) + 1);Plot(LastValue(Cum(1)), "LastValue(Cum(1))", 
  colorYellow,styleNoDraw+styleNoRescale);------------------That 
  last line doesn't set any variables. It doesn't plot anything. It onlyadds 
  to the default chart title. Why should it have any effect at all 
  onanything, much less code that runs *before* 
  it?DaveSend 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 
  
  
  Yahoo! Groups Links
  
    To visit your group on the web, go to:<A 
    href="">http://groups.yahoo.com/group/amibroker/  

    To unsubscribe from this group, send an email to:<A 
    href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  

    Your use of Yahoo! Groups is subject to the <A 
    href="">Yahoo! Terms of Service. 
  


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





Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.