PureBytes Links
Trading Reference Links
|
Stephane,
Writeif may be also nested, just like iff for more names
Writeif(cond1,a1,Writeif(cond2,a2,Writeif(cond3,a3 etc
For more names, it is more convenient to use the [relatively new]
GETCATEGORYSYMBOLS ( ) function.
Dimitris
--- In amibroker@xxxxxxxxxxxxxxx, "Stephane Carrasset"
<nenapacwanfr@xxxx> wrote:
> Dimitri,
>
> Thanks,yes, you're right, it works very well with this solution.
>
> tick=Optimize("tick", 1, 1, 2, 1 );
> ticker=WriteIf(tick==1,"^IXIC","^DJI");
> scSwingFibo(ticker,4);
>
> Stephane
>
>
>
> > I dont know scSwingFibo, but the second line should be
> > ticker=Writeif(tick==1,"^IXIC","^DJI");
> > Dimitris
> > --- In amibroker@xxxxxxxxxxxxxxx, "Stephane Carrasset"
> > <nenapacwanfr@xxxx> wrote:
> > > Michael,
> > >
> > > you're right that's works like this
> > > tick=Optimize("tick", 1, 1, 3, 1 );
> > > if(tick==1)
> > > {ticker = "^IXIC";}
> > > if(tick==2)
> > > {ticker = "^DJI";}
> > > if(tick==3)
> > > {ticker = "999150";}
> > >
> > > scSwingFibo(ticker,4);
> > >
> > > I come back slowly to trading and discover all the new
> enhancements
> > > of Amibroker.
> > >
> > > Stephane
------------------------ 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/l.m7sD/LIdGAA/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/
|