PureBytes Links
Trading Reference Links
|
Bharat,
To learn about the formula language go to the files section and
download the Metastock Formula Language book in either pdf or zip
format. Once you've done that you will be better prepared to make the
correct decision about how you want the formula to work. I would also
suggest that you open a chart with a price plot in one window and the
FFT in another.
The basics of the formula will use one moving average if the FFT has
a certain value and another moving average if the FFT has a different
value.
Let's say the FFT has the following values of 10, 20, and 30. Your
plan is to reflect those values in your moving average. You would
write the following:
MYMA:= if(FFT=10,mov(close,10,e),if(FFT=20,mov(close,20,e),if
(FFT=30,mov(close,30,e),mov(close,3,e))));
MYMA
Note that in the formula above if the FFT does not exactly equal a
value of 10,20,or 30 you would get a 3 day moving average or
mov(close,3,e). You may wish to change these parameters to ranges of
5 to 15, 16 to 25, and 26 to 35 instead. This would be accomplished
by using
if(FFT>5 and FFT<15,mov(close,10,e).
This is something that you will need to decide based on the values of
the FFT that you see on your chart.
You may also find it beneficial to visit a couple of formula sites to
determine how others have used the "if" statement. Hope this helps.
Preston
--- In equismetastock@xxxxxxxxxxxxxxx, mudgalbharat <no_reply@xxxx>
wrote:
> Hello Preston
>
> I do not have any idea about metastock formula language, or i can
> say i have very very little knowledge about it. Can you help me
with
> the said 'if' statements??
>
> regards
>
> Bharat
> --- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxxx>
wrote:
> > Bharat,
> >
> > Unless you have an adaptive DLL you will need to use if
statements
> to
> > construct the moving average. You might also want to recheck the
> > parameters of your FFT to make sure it will give you a value.
> >
> > Preston
> >
> >
> >
> > --- In equismetastock@xxxxxxxxxxxxxxx, mudgalbharat
> <no_reply@xxxx>
> > wrote:
> > > I want and indicator which would consider the current value of
> the
> > > Fast Fourier Transform ( FFT ) as the constant.
> > > Example :
> > > TO plot a 200-Period Simple Moving Average, the formula used is:
> > > Mov(CLOSE ,200, simple)
> > >
> > > What I want is that instead of '200' the indicator fetches the
> > > current value of the FFT and plot the indicator...so the
formula
> > > should look like this: Mov(CLOSE ,value_of_FFT, simple)
> > >
> > > The default formula ( with parameters )for FFT is FFT( CLOSE,
> 100,
> > > 1, DETREND, POWER )
> > >
> > > regards
> > >
> > > Bharat Mudgal
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/BefplB/TM
---------------------------------------------------------------------~->
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/
|