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

Re: [EquisMetaStock Group] Yearly 52 wk hi scan



PureBytes Links

Trading Reference Links

Bill, the referenced Hull MA indicator signals will work with any 
exploration date.

{ Long signals }
Fml("MA - Hull")=1;

{ Short signals }
Fml("MA - Hull")=-1;


Make sure that you have your Explorer setup to load sufficient data:

MetaStock -> Tools -> The Explorer -> Options -> Load 2520 Records -> 
Ok.


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




--- In equismetastock@xxxxxxxxxxxxxxx, bill rook 
<zipple_acre_udder@xxx> wrote:
>
> Jose
>    
>   I like this exploration and use this scan nightly with external
> relative strength.
>    
>   I tried putting in an older date and didn t get a result.
>    
>   Does this only work with the latest date?
>    
>   Regards
>    
>   Bill
> 
>
>
> Jose Silva <josesilva22@xxx> wrote:
>
> Preston, the "sqrtperiod" variable in the original formula defaults 
> to a 4.47 value, and is a square root function of the input
> periods. 
> Perhaps it should not be adjustable.
> 
> sqrtperiod:=Sqrt(period);
> 
> Here is an example for signals based on the Hull MA:
> 
> =========
> MA - Hull
> =========
> ---8<------------------------------------
> 
> { Hull Moving Average & crossover signals.
> 
> ©Copyright 2006 Jose Silva.
> The grant of this license is for personal use
> only - no resale or repackaging allowed.
> Trade signals at your own risk.
> http://www.metastocktools.com }
> 
> { Indicator inputs }
> plot:=Input("plot: [1]Hull MA, [2]Crossover Signals",1,2,2);
> pds:=Input("Hull MA periods",1,252,21);
> delay:=Input("Entry and Exit delay",0,5,0);
> 
> { Hull MA }
> sqrtpds:=LastValue(Sqrt(pds));
> hma:=Mov(2*Mov(C,pds/2,W)-Mov(C,pds,W),sqrtpds,W);
> 
> { Crossover signals }
> entry:=Cross(C,hma) AND hma>Ref(hma,-1) AND C>hma*1.01;
> exit:=Cross(hma,C) AND hma<Ref(hma,-1);
> 
> { Clean signals }
> init:=Cum(IsDefined(entry+exit))=1;
> bin:=ValueWhen(1,entry-exit<>0 OR init,entry);
> long:=bin*(Alert(bin=0,2) OR entry*Cum(entry)=1);
> short:=(bin=0)*(Alert(bin,2) OR exit*Cum(exit)=1);
> signals:=Ref(long-short,-delay);
> 
> { Plot HMA on price chart, signals in own window }
> If(plot=1,hma,signals)
> 
> ---8<------------------------------------
> 
> jose '-)
> http://www.metastocktools.com





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/