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

[EquisMetaStock Group] Re: formula assistance



PureBytes Links

Trading Reference Links


Try this Exploration filter / Indicator code:

---8<------------------------

{ http://www.metastocktools.com }

{ % Variables }
ThresholdPercent1:=20;
ThresholdPercent2:=30;

{ High/Low range }
range:=H-L;
range:=If(range=0,.00001,range);

{ Part 1 }
CloseRange:=(C-L)/range*100;
CloseOk:=CloseRange>=100-ThresholdPercent1;
Part1:=Ref(CloseOk AND C>0,-1);

{ Part 2 }
OpenRange:=(O-Ref(L,-1))/Ref(range,-1)*100;
OpenOk:=OpenRange>=100-ThresholdPercent2;
Part2:=O<Ref(H,-1) AND O>Ref(L,-1) AND OpenOk;

{ Signal }
Part1 AND Part2

---8<------------------------


jose '-)
http://www.metastocktools.com



--- In equismetastock@xxxxxxxxxxxxxxx, "wandaria" <kotim@xxxx> wrote:
> 
> 
> Hi folks I have metastock 7.01 and have been trying to do a formula 
> to use in expert advisor,  I have so far been unsuccesful.  What I 
> want to do is locate stocks/commodities where the bar yesterday has 
> a higher close than open and the close is in the top 20% of the 
> range of the bar, that is it closes within 20% of the high for the 
> day.  
> The second part of the fomula refers to the most recent bar in that 
> as well as fulfilling the previous day requirement I want to see the 
> next bar where it has opened inside the range of the previous bar, 
> but where the open is within 30% the high of the previous bar.
> 
> Essentially it is a two bar formula.
> 
> thanks in advance.
> 
> 
> Tim





------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/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/