PureBytes Links
Trading Reference Links
|
Have a look at the user guide for AddToComposite. It covers this type
of operation.
http://www.amibroker.com/guide/a_addtocomposite.html
Also, Hermen's guide, which goes into much more detail.
http://www.amibroker.net/3rdparty/IntroToAtc.pdf
Mike
--- In amibroker@xxxxxxxxxxxxxxx, "Louis Préfontaine"
<rockprog80@xxx> wrote:
>
> Hi Mike,
>
> I am interested in that too. I tried the formula, but it's only an
average
> of both tickers. I'd like to find a way to create my own index.
e.g.
> combine 5-10 tickers and adding all their close, high, low, open,
volume to
> get a super-index for those 5-10 tickers. Is it possible?
>
> Thanks,
>
> Louis
>
> 2008/3/5, Mike <sfclimbers@xxx>:
> >
> > Have a look at AddToComposite
> > http://www.amibroker.com/guide/afl/afl_view.php?id=7
> >
> > AddToComposite(Foreign("846900","o"), "~MyDAX", "O");
> >
> > AddToComposite(IIF(IsEmpty(Foreign("A0C4CA","h")),Foreign
> > ("846900","h"),Max(Foreign("846900","h"),Foreign
> > ("A0C4CA","h"))), "~MyDAX", "H");
> >
> > AddToComposite(IIf(IsEmpty(Foreign("A0C4CA","l")),Foreign
> > ("846900","l"),Min(Foreign("846900","l"),Foreign
> > ("A0C4CA","l"))), "~MyDAX", "L");
> >
> > AddToComposite(IIf(IsEmpty(Foreign("A0C4CA","c")),Foreign
> > ("846900","c"),Foreign("A0C4CA","c")), "~MyDAX", "C");
> >
> > New symbol ~MyDAX will appear under Market253 fully populated
> > according to your logic.
> >
> > Add flags for exploration and backtesting as needed.
> >
> > Mike
> >
> > --- In amibroker@xxxxxxxxxxxxxxx <amibroker%40yahoogroups.com>,
Thomas
> > Ludwig <Thomas.Ludwig@>
> > wrote:
> > >
> > > Hello,
> > >
> > > I want to create an artificial ticker from two existing
tickers. If
> > I do
> > > it this way:
> > >
> > > O1=Foreign("846900","o");
> > > H1=IIf(IsEmpty(Foreign("A0C4CA","h")),Foreign("846900","h"),Max
> > (Foreign("846900","h"),Foreign("A0C4CA","h")));
> > > L1=IIf(IsEmpty(Foreign("A0C4CA","l")),Foreign("846900","l"),Min
> > (Foreign("846900","l"),Foreign("A0C4CA","l")));
> > > C1=IIf(IsEmpty(Foreign("A0C4CA","c")),Foreign
("846900","c"),Foreign
> > ("A0C4CA","c"));
> > >
> > > PlotOHLC(O1,H1,L1,C1,"MyDAX",colorBlack,styleCandle);
> > >
> > >
> > > ... I get it as an indicator - but that's not what I want. In
order
> > to
> > > get an artificial ticker I guess that I have to export the
values
> > to an
> > > ASCII file and import it again using fputs() and fgets() but I'm
> > not
> > > sure how to do it. Any suggestions would be highly welcome.
> > >
> > > Regards,
> > >
> > > Thomas
> > >
> >
> >
> >
>
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|