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

[EquisMetaStock Group] Re: median of the last “n” days



PureBytes Links

Trading Reference Links

Metastock has a median funtion which is MP(). The calculation for it is (high+low)/2. There is no time or floor function.

Preston



--- In equismetastock@xxxxxxxxxxxxxxx, darkestlie <no_reply@xxx> wrote:
>
> hi :)
> 
> i try coded median in metastock, but i have problem with "Ref(C,n-days)"..
> 
> time1:=Input("time1",2,100,9);
> If(frac(time1/2)>0,Ref(C,-(floor(time1/2))),(Ref(C,-(time1/2))+Ref(C,-(time1/2+1)))/2);
> {;/}
> 
> any suggestions ?
>




------------------------------------

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/