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

Re: [Metastockusers] formula



PureBytes Links

Trading Reference Links

Brian

> I have been using metastock for a while but I am new to formula writing.
> I would appreciate it if some one could help me with a simple formula.
> This is an exploration filter I require.
> RSI >35 <45, todays price higher than yesterdays price, volume increase
5%.
> Thanks in advance.
> Brian

For versions 7.2 and above.
RSI(C,14)>35 AND RSI(C,14)<45 AND C>Ref(C,-1) AND V>Ref(V,-1)*1.05

For versions below 7.2 (I think)
RSI(14)>35 AND RSI(14)<45 AND C>Ref(C,-1) AND V>Ref(V,-1)*1.05

The correct syntax for RSI in our version can be found in the User Manual.

Note that you will need to set the number of periods for RSI to whatever you
require.

Use the appropriate code above as an indicator initially so that you can
verify it is functioning correctly. Expecting untested code to work first
time in the Explorer is going to make you very frustrated when you don't get
the results you expect. The Explorer is not a good tool for testing or
troubleshooting code - the Indicator Builder is the appropriate tool to use
until you are happy that it's right. Then you can transfer the indicator (in
most cases) to an Explorer column or filter and delete the temporary
indicator.

Also make sure that you DO NOT use "Load Minimum Records" for your
exploration. RSI() contains Wilders Smoothing (a form of exponential MA)
which means that an explored RSI() requires about 5 times the periods value
specified for RSI() to be accurate to within 3 or 4 decimal places of the
charted value which is using every bar loaded.

Roy




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/mk9osC/hP.FAA/3jkFAA/zMEolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/