PureBytes Links
Trading Reference Links
|
Mr. murali krishna venkata puppala, perhaps you could adapt this
Calendar day Ref() indicator to your needs:
==================
Calendar day Ref()
==================
---8<----------------------
{ CalendarDay-based Ref() function v1.0
©Copyright 2005 Jose Silva
For personal use only.
http://www.metastocktools.com }
{ User inputs }
days:=Input("Calendar Days lookback",0,36500,7);
x:=Input("[1]Open [2]High [3]Low [4]Close [5]WCl [6]Vol",1,6,4);
plot:=Input("Calendar Lookback: [1]Price, [2]Signal",1,2,1);
{ Data Array }
x:=If(x=1,O,If(x=2,H,If(x=3,L,If(x=5,WC(),
If(x=6,V,C)))));
{ Calendar days formula, available from
http://www.metastocktools.com/#metastock }
calendar:=Fml("Calendar Day counter");
{ Calendar day CountDown }
countDown:=LastValue(calendar)-calendar;
{ Lookback reference signal }
signalZone:=countDown<=days OR Cum(1)=1;
signal:=signalZone*Alert(signalZone=0,2)
OR Cum(1)=1;
{ Reference price x calendar days ago }
calRef:=If(signalZone,ValueWhen(1,signal,x),x);
{ Plot on price chart }
If(plot=1,calRef,signal)
---8<----------------------
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, murali krishna venkata puppala
<krishnapvm@xxxx> wrote:
>
>
> mr.jose silva
> i would like to compare today price with 10
> calenderdays back. let us say whether today low is
> within the range of 10th calender day back.
>
>
> thanks in advance.
>
> krishnapvm@xxxx
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/
|