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

[EquisMetaStock Group] Help needed in Exploration Code



PureBytes Links

Trading Reference Links

I want an exploration to find the days elapsed of stocks below/above 
50 day exponential moving average. I tried following one, but it 
simultaneously produces result showing both up day count and down day 
count of each stock. Help me in correcting the code. Thanks in advance.

Col A: Above/50 DMA
===================
x:=Cross(C,Mov(C,50,E));
BarsSince(x)

Col B: Below/50 DMA
===================
y:=Cross(Mov(C,50,E),C);
BarsSince(y)



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/