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

Re: [EquisMetaStock Group] Exploration



PureBytes Links

Trading Reference Links

Hi Vinod
 
 
If this oscillator is already stored as an indicator in MetaStock then you can call the indicator in the exploration filter using the Fml() function, like this perhaps...   Fml("Kaufman Market Efficiency Ratio")>0
 
As written the formula has ZERO as the last of two outputs, and it would therefore reject all securities because zero cannot be greater than zero. By reversing the order of "MER" and "0" the last output is changed to MER and this can be tested for greater than zero. Remember, when using formulas with multiple outputs (plots or results) only the last output is recognised by an exploration. That's unless you call a named variable and test it, like this maybe...
 
FmlVar("Kaufman Market Efficiency Ratio","MER")>0
 
When calling a named variable with FmlVar() it doesn't matter where it is generated in the formula, but when you're calling the formula with Fml() the value that's returned to the exploration is always the last output. Similarly, the filter can only test the last output of an exploration column.
 
If the formula is not stored as an indicator then you can insert the following code into an exploration.
 
pds:= 8;
Speed:= C - Ref(C, -pds);
Volatility:= Sum(Abs(C - Ref(C, -1)),pds);
Efficiency:= Speed / Volatility;
MER:= Mov(Mov(Efficiency, 5,E),3,E);
MER>0
 
If I was setting up the exploration for myself I would create the indicator and name it "Kaufman Market Efficiency Ratio". (not retaining the braces {} as part of the indicator name)
 
 {Kaufman Market Efficiency Ratio}
pds:= Input("Periods",3,200,8);
Speed:= C - Ref(C, -pds);
Volatility:= Sum(Abs(C - Ref(C, -1)),pds);
Efficiency:= Speed / Volatility;
MER:= Mov(Mov(Efficiency, 5,E),3,E);
0;
MER;
 
And my exploration would look like the one below (I've tested it and it works as intended). This exploration will return the formula value in column A, a TRUE or FALSE result on column B, and the filter eliminates all securities reporting a FALSE in column B.
 
{colA}
Fml("Kaufman Market Efficiency Ratio");
 
{colB}
Fml("Kaufman Market Efficiency Ratio")>0;
 
{Filter}
colB
 
 
Hope this helps.
 
Regards
 
Roy
 

----- Original Message -----
Sent: Friday, March 06, 2009 8:12 PM
Subject: [EquisMetaStock Group] Exploration

Hi,

Can anyone pls help me make an exploration to find stocks whose value is abv Zero(0) with the following formula

pds:= Input("Periods",3,200,8);
Speed:= C - Ref(C, -pds);
Volatility:= Sum(Abs(C - Ref(C, -1)),pds);
Efficiency:= Speed / Volatility;
MER:= Mov(Mov(Efficiency, 5,E),3,E);
MER;
0;

Thanx and regds............Vinod



__________ NOD32 3914 (20090306) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com


__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___