PureBytes Links
Trading Reference Links
|
Try this:
---8<-------------------------
pds1:=10;
pds2:=20;
Normal:=Cum(Cross(Mov(MACD(),pds1,E),
Mov(MACD(),pds2,E)))=1;
firstNormal:=Normal AND Alert(Normal=0,2);
Reverse:=Cum(Cross(Mov(MACD(),pds2,E),
Mov(MACD(),pds1,E)))=1;
firstReverse:=Reverse AND Alert(Reverse=0,2);
firstNormal OR firstReverse
---8<-------------------------
jose '-)
--- In equismetastock@xxxxxxxxxxxxxxx, "lynn14344" <darisr@xxxx>
wrote:
> Hi everybody there,
>
> I have this formula for exploration purposes but its not working to
> my formula. I'm looking at the FIRST time crossover( when moving ave
> for 10 days is greater than the 20 days) based on the formula below
> but it also shows results based on the reverse form( moving ave 20
> days greater than 10 days).
>
> in col a I wrote this
> cross(mov(macd(), 10, e), mov(macd(), 20, e))
>
> in col b I wrote this
> cross(mov(macd(), 20, e), mov(macd(), 10, e))
>
> In the filter col I wrote this
> cola = 1 or colB = 1
>
>
> How can I overcome is problem.I just want the first time crossover
> for 10 days moving ave of the macd greater than 20 days. Can someone
> please help me.
>
> Thank you very much and eargerly waiting for some help.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|