PureBytes Links
Trading Reference Links
|
There's an error in that formula - try this version:
=============
Range - basic
=============
---8<--------------------------
{ Avg of Hi/Lo range over x periods }
{ http://www.metastocktools.com }
{ User inputs }
pds1:=Input("Lookback periods",1,2600,5);
pds2:=Input("Average over x periods",1,260,35);
type:=Input("type: [1]Points, [2]%",1,2,1);
{ Range }
hi:=HHV(H,pds1);
lo:=LLV(L,pds1);
range:=If(type=1,hi-lo,(hi-lo)/hi*100);
SmRange:=Mov(range,pds2,S);
avg:=Cum(SmRange)/Cum(IsDefined(SmRange));
{ Plot in own window }
avg;SmRange
---8<--------------------------
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, "Jose Silva" <josesilva22@xxxx>
wrote:
>
> Why two indicators? Try this:
>
> =============
> Range - basic
> =============
> ---8<--------------------------
>
> { Avg of Hi/Lo range over x periods }
> { http://www.metastocktools.com }
>
> { User inputs }
> pds1:=Input("Lookback periods",1,260,5);
> pds2:=Input("Average over x periods",1,260,35);
> type:=Input("type: [1]Points, [2]%",1,2,1);
>
> { Range }
> hi:=HHV(H,pds1);
> lo:=LLV(L,pds1);
> range:=If(type=1,hi-lo,(hi-lo)/hi)*100;
> SmRange:=Mov(range,pds2,S);
> avg:=Cum(SmRange)/Cum(IsDefined(SmRange));
>
> { Plot in own window }
> avg;SmRange
>
> ---8<--------------------------
>
>
> jose '-)
> http://www.metastocktools.com
>
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, "wetrade2002" <wetrade2002@xx
..
> wrote:
>
> Hi
>
> I am trying to create 2 indicators that shows a stock
> movement(Range) per week and where the range of the stock is
> currently?
>
> I find that ATR does not work that well.
>
> I want to see the average of the HIGH - LOW for the week for maybe 7
> weeks.
>
> Thanks
------------------------ 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/
|