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

Re: [EquisMetaStock Group] How to use variable instead of constant in Mov?



PureBytes Links

Trading Reference Links

Hi Chandrashekhar

You could try

Mov(Vol,LastValue(X+PREV-PREV),E)

or work with the following EMA formula to input your own value of "X".

  {Exponential Moving Average}
n:=Input("Periods",1,999,10);
R:=2/(N+1); {ratio of new data added each bar}
M:=If(Cum(1)=1,C,PREV*(1-R)+C*R);
M;

Either way, you probably need to use PREV. If "X" is a "fixed" variable, i.e., it always stays the 
same, then all you need to is put LastValue() around it and it will work, but if it changes for each 
bar then there's no escaping PREV.

Kind regards

Roy Larsen
www.metastocktips.co.nz
Free formulas and MS links

PS: There'll be some information on LastValue(X+PREV-PREV) in the October newsletter.





----- Original Message ----- 
From: "Chandrashekhar Buty" <cvbuty21@xxxxxxxxxxx>
To: "Metastock group" <equismetastock@xxxxxxxxxxxxxxx>
Sent: Saturday, September 18, 2004 7:28 AM
Subject: [EquisMetaStock Group] How to use variable instead of constant in Mov?


>I want use variable say X in Mov(Vol,X,e)
>
> Its giving error use constant at X
>
> I have stored certain event result in this variable X
> I want to calculate average volume for this X days
>
> Please help
>
> Thanks in advance
>
> Cheers Happy trading
>
>
> ________________________________________________________________________
> Yahoo! India Matrimony: Find your life partner online
> Go to: http://yahoo.shaadi.com/india-matrimony
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
> 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/