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

Re[2]: [EquisMetaStock Group] SUM problem!



PureBytes Links

Trading Reference Links

Roy,
    Thank you.
As I said I was CONFUSED.
There is nothing wrong with Sum() just I misunderstood the function.
I need something to limit the 'backlook' (last n records processed)
but I can't find the way. Trying I confused the use of sum()
Do you know if is possible to limit the 'backlook' without change the
metastock configuration ?
Thank U in advance.
Pablo

PS: I'd like help to "mmbbrr79" so I tried:

lookback:=100;
EMA:=Mov(C,50,E);
DaysAbove:=Sum(If(C>EMA,1,0),lookback);
DaysBelow:=Sum(If(C>EMA,1,0),lookback);
Ratio:=DaysAbove/DaysBelow;

BUT it uses ALL records and the code can not limit to 100.




------------------------ Yahoo! Groups Sponsor --------------------~--> 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/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/