PureBytes Links
Trading Reference Links
|
CNdx= Foreign("Ndx", "C");
MaNdx=Cndx > MA(Cndx,30);
buy = cross( close, ma( close,30 ))
AND ref(MaNdx,-1);
buy
In amibroker@xxxx, jgs@xxxx wrote:
> I guess this has probably been asked before, but I can not find an
> answer.
>
> I want to test a condition such as:
>
> buy = cross( close, ma( close,30 ));
>
> but only when say the NASDAQ also fulfills the same condition,
> (ie it's value is also above it's 30 day MA)
>
> Any ideas as to how to code ?
>
> Thanks
>
> Jonathan
|