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

[EquisMetaStock Group] Re: converting metastock formula to c#



PureBytes Links

Trading Reference Links

chellester,

Its Metastock math!

Okay try this. Put  Sum(Cum(1),2);  into your indicators and plot it on 
a chart. On bar 2 you will get a value of 3. The value for bar 3 is 5 
and bar 4 is 7. In other words it increases by a value of 2 with each 
new bar.  Doesn't make sense does it?

We know that Cum(1) is just a 1 bar count. 
If we look at the explanation for summation we get:

SYNTAX	sum( DATA ARRAY, PERIODS )

FUNCTION  Calculates a cumulative sum of the DATA ARRAY for the 
specified number of lookback PERIODs (including today).


If I had to guess I would say that it is the "including today" that is 
the culprit. 

Maybe Roy will have a better answer.


Preston



 
  

--- In equismetastock@xxxxxxxxxxxxxxx, "chellester2002" <rego2@xxx> 
wrote:
>
> 
> > And just while I'm trying to work things out - please forgive me if 
> > this is dumb but can someone please tell me if 
> > 
> > Sum(Cum(1),5) = 15?  I'm just getting all mixed up and confused.
> > Thanks
> >
> 
> Ok, I know it's not 15, but I can't figure out what it is 
> :(
>




 
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/