[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

Tomasz,
Here is the analytic and the direct ARR with elements from H, L, C
ARR1=0;ARR2=0;ARR3=0;ARR=0;
 for(I=0;I<BarCount;I++)
{
ARR1[I]=(I%3==0)*H[I];
ARR2[I]=(I%3==1)*L[I];
ARR3[I]=(I%3==2)*C[I];
ARR[I]=ARR1[I]+ARR2[I]+ARR3[I];
}
Plot(ARR,"Analytic ARR",1,8);
Plot(IIf((Cum(1)-1)%3==0,H,IIf((Cum(1)-1)%3==1,L,C)),"ARR",4,1);
Is there anything wrong [or not supported] "for an array to be an 
element of another array"?
We may have, for example, an array useful for backtesting, with 
elements equal to Open, when buy or sell and equal to Close for the 
rest of the bars. I do not see any touble, except if I misunderstood 
the question.

Dimitris Tsokakis 

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> Hello,
> 
> No it is not supported in native AFL, however possible using for 
example
> Osaka plugin: http://www.amibroker.net/3rdparty.php
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "bromba" <bromba@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Sunday, November 23, 2003 11:01 AM
> Subject: [amibroker] array in array -- is it suppported in AFL?
> 
> 
> > 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
> > 
> > 
> > 
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > 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/ 
> > 
> > 
> >


------------------------ 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/