PureBytes Links
Trading Reference Links
|
You may also see OHLCV together if you select the artificial ticker
~INDEX from your symbol tree.
In this case you do not need the Ind. Builder formulas.
The AA formula is
AddToComposite(O/30,"~INDEX","O");
AddToComposite(H/30,"~INDEX","H");
AddToComposite(L/30,"~INDEX","L");
AddToComposite(C/30,"~INDEX","C");
AddToComposite(V/30,"~INDEX","V");
Buy=0;
Run and then select from Symbol tree the ~INDEX. In your PRICE chart
you have the OHLCV.
DT
--- In amibroker@xxxx, "dtsokakis" <TSOKAKIS@xxxx> wrote:
> Keith,
> Run first in AA the
>
> AddToComposite(O,"~INDEX","O");
> AddToComposite(H,"~INDEX","H");
> AddToComposite(L,"~INDEX","L");
> AddToComposite(C,"~INDEX","C");
> AddToComposite(V,"~INDEX","V");
> Buy=0;
> selecting your 30 stocks group for All quotations.
> Then,in ind. Builder paste the
> O=Foreign("~INDEX","O")/30;
> H=Foreign("~INDEX","H")/30;
> L=Foreign("~INDEX","L")/30;
> C=Foreign("~INDEX","C")/30;
> Plot(C,"",1,64);
>
> and you will have an OHLC graph of your INDEX.
> for Volume you should use another window with
> V=Foreign("~INDEX","V")/30;
> Plot(v,"",1,2);
> Dimitris Tsokakis
> --- In amibroker@xxxx, "kbennett99" <kbennett@xxxx> wrote:
> >
> > I have some difficulty to follow the (for me) complicated "How
to"
> > examples which have been given.
> >
> > I have 30 stocks which I track as an artificial index. I produce
> this
> > index by averaging the 30 OHLC and Vol numbers in Excel, and then
> > import into AB using the ASCII importer.
> >
> > How can I do this using AddToComposite, and will the artificial
> index
> > be automatically updated each day (I use the TC2000 plugin).
> >
> > Assistance appreciated.
> >
> > Keith (B)
|