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

[amibroker] Script help



PureBytes Links

Trading Reference Links

Hi




I have written a script and find that it is executing 3 times when it 
is first applied and twice on subsequent applications.




The following is a test script which shows this behavior.






EnableScript("vbscript");


<%


scClose= AFL("Close")




i=ubound(scclose)




For j=i-4 to i   


   msge = "k=  " & Cstr(j)& "  Close=  " & Cstr(scclose(j))  


   msgbox (msge)


Next




%>






The message box cycles through 3 times and then twice.  




What am I doing wrong?  Any help would be appreciated.




Ian



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Your own Online Store Selling our Overstock.
http://us.click.yahoo.com/rZll0B/4ftFAA/46VHAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 http://docs.yahoo.com/info/terms/