[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

> confirmed here. mr. bromba asked for two dimensional arrays.
> he also tried to use jscript to "trick" AFL, but it seems that AFL 
is 
> brombaproof for tricks of that kind. maybe someone will find it 
> information useful..
> 
> thanks for explanation,
> mr. bromba ;)

Well, I see now, you want a superArray A with elements a0=H, a1=L, 
a2=C, a3=O etc.
[I don't write a[0] because it has already another AFL meaning]
Select say ^NDX, Run for all quotations  the
for(i=0;i<4;i++)
{
x=IIf(i==0,H,IIf(i==1,L,IIf(i==2,C,O)));
AddToComposite(x,"~"+WriteVal(i,1.0),"C");
Buy=0;
}
and then, in your IB paste the

x="";g=0;
for(i=0;i<4;i++)
{
x="~"+WriteVal(i,1.0);
g=Foreign(x,"C");
Plot(g,"a"+WriteVal(i,1.0),1,1);
}
All your ai will be there.
May I ask the use of this procedure ?
Dimitris Tsokakis



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