PureBytes Links
Trading Reference Links
|
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)
|