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

[amibroker] Re: Passing arrays to a DLL



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "sharps_45_70" <sharps_45_70@xxxx>
wrote:
> When you pass and array to a dll in the AA window, the entire array 
> is passed regardless of the settings in the Range settings.
> 
> For example, if you pass the "close" array of a symbol that you have 
> 2000 bars of data in the database, and the the range is set to "all 
> quotations", then the size of the array passed is 2000.
> 
> If you set the date range to something other than "all quotations," 
> say 1/1/1995 to 12/31/2000, the entire 2000 element array is still 
> passed to the dll, not just the array that represents the range set 
> in the Range box.
> 
> Does anyone know a way to synronize the number of array elements 
> passed to a dll with the range set in the Range box?
> 
> Thanks,
> Ed

Could you use EndValue(Array), BeginValue(Array), and ValueWhen to
accomplish this?  You'd still be passing all the elements of the
arrays, but at least you could easily identify the start and end
values (say of Cum(1)) associated with the selected range.

a




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Special Sale: 50% off ReplayTV
Easily record your favorite shows!
CNet Ranked #1 over Tivo!
http://us.click.yahoo.com/WUMW7B/85qGAA/ySSFAA/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/