[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stochastic / Foreign



PureBytes Links

Trading Reference Links

There is one static and one dynamic method.
a. Static method
Paste in ind. builder the
Plot(StochD(),"STOCHD",2,1);
C=Foreign("^NDX","C");
H=Foreign("^NDX","H");
L=Foreign("^NDX","L");
Y=StochD();
Plot(Y,"INDEXSTOCHD",4,8);
and you will get the individual and the index StochD().
b. Dynamic method
In AA select the index and run for all quotations the

AddToComposite(StochD(),"~INDEXSTOCHD","C");
Buy=0;
Then in ind.builder paste the
S1=Foreign("~INDEXSTOCHD","C");
Plot(S1,"INDEXSTOCHD",1,1);
Plot(StochD(),"",2,1);
The static method does not need a daily run, it is updated 
automatically.
But, you should write any individual function BEFORE the C=Foreign
("^NDX","C"); line [to avoid redefine C, H, L ]
The dynamic method needs an update everyday but, it is more flexible 
in ind. builder.
DT
--- In amibroker@xxxx, "akaloustian" <ara1@xxxx> wrote:
> How would one create the stochastic for an index that does not 
change 
> with the selected stock?
> 
> Stoc14 = StochD(Foreign("$SPX","Close"),14); ????
> 
> Is this function possible?
> 
> Thanks
> 
> Ara