PureBytes Links
Trading Reference Links
|
Try this:
==========================
Normalized price to 0~100%
==========================
---8<---------------------
{ ©Copyright 2004 Jose Silva }
{ For personal use only }
{ http://users.bigpond.com/prominex/pegasus.htm }
{ User input }
pds:=Input("Normalizing periods (none=0)",
0,25200,252)+1;
{ Cummulative RoC }
x:=Cum(C/Ref(C,-1)-1)*100;
{ Normalize RoC }
y:=HHV(x,pds)-LLV(x,pds);
y:=If(y=0,.000001,y);
xNorm:=(x-LLV(x,pds))/y*100;
xNorm:=If(pds<2,x,xNorm);
{ Normalized-RoC Average }
avg:=Cum(xNorm)/Cum(IsDefined(xNorm));
{ Plot in own window }
If(pds<2,xNorm,avg);xNorm
---8<---------------------
jose '-)
--- In Metastockusers@xxxxxxxxxxxxxxx, Tony <TraderSeven@xxxx> wrote:
> Hello Metastockusers,
>
> I want the replace the price on the chart display with a percentage.
> The lowest price on the *visible* part of the chart should be 0%
> All other prices should be calculated relative to the '0% price'
> I'm reviewing a large number of charts for a 'first impression'
> One of the things I look at how large the average trends are.
> Now I just do that by calculating a percentage from the prices.
> What I requested above should roughly do the same.
> Any idea's how to do this?
> Or other ways with a similar effect?
>
> --
> Best regards,
> TraderSeven
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/zMEolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Metastockusers/
<*> To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|