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

[amibroker] Re: array in array -- is it suppported in AFL?



PureBytes Links

Trading Reference Links

BM,
After your
arrC[0] = arrA;
arrC[1] = arrB;
you did not specify the rest arrC[i], for i>1.
In the case you want an array C,H,C,H,...
the solution is simple
arrC=IIf(Cum(1)%2==1,C,H);
Dimitris Tsokakis

--- In amibroker@xxxxxxxxxxxxxxx, bromba <bromba@xxxx> wrote:
> helo everybody,
> 
> is it possible for an array to be an element of another array, so 
that 
> the following code would work?
> 
> function fArrayInArray() {
> 	local arrA, arrB, arrC;
> 	for(i=0;i<BarCount;i++) arrA[i] = Close[i];
> 	for(i=0;i<BarCount;i++) arrB[i] = High[i];
> 	arrC[0] = arrA;
> 	arrC[1] = arrB;
> 	return arrC;
> }
> 
> arrD = fArrayInArray();
> 
> best regards,
> BM


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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/