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

RE: [amibroker] categoryWatchlist



PureBytes Links

Trading Reference Links




<FONT face=Arial 
color=#0000ff size=2>Whenever you have a situation like you described then you 
can use the following technique to "trace" your formula:
<FONT face=Arial 
color=#0000ff size=2> 
<FONT face=Arial 
color=#0000ff size=2>Range = 20;EndDate = 
LastValue(BarIndex());StartDate = EndDate - Range + 
1;AddColumn(StartDate ,"StartDate ",1);AddColumn(EndDate ,"EndDate 
",1);for(i = StartDate; i < EndDate + 1; i = i + 
1){    PHigh = High[i];    AddColumn(i 
,"i",1);}Filter =1 ;
<FONT face=Arial 
color=#0000ff size=2> 
<FONT face=Arial 
color=#0000ff size=2>run this in explore and see what's going 
on.
<FONT face=Arial 
color=#0000ff size=2> 
<FONT face=Arial 
color=#0000ff size=2>BTW - it ran fine for me. 
<FONT face=Arial 
color=#0000ff size=2> 
<FONT face=Arial 
color=#0000ff size=2>d


From: billbarack [mailto:wbarack@xxxxxxxxxxx] 
Sent: Tuesday, January 27, 2004 3:24 PMTo: 
amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] For loop 
help
Can anyone find out why I'm getting a "Error 7 Subscript out of 
Range" error statement on the following code?Range = 20;EndDate 
= LastValue(BarIndex());StartDate = EndDate - Range + 1;for(i = 
StartDate; i < EndDate + 1; i = i + 1){      
      PHigh = High[i];}I've tried 
everything I could think of to understand this (even reading and re-reading 
the help files :>)  ). These senior moments are starting to happen 
far to often for me !Thanks,BillSend 
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 Sponsor


  ADVERTISEMENT 









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.