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

Re: [EquisMetaStock Group] Re: mr. jose siva-can you help me



PureBytes Links

Trading Reference Links

Jose
Are there any systems that place buy and sell arrows on the chart? I tried this one below and put it in the Indicator  builder and I get an error, Copied all between the 8's.
Bob
 
----- Original Message -----
From: Jose Silva
Sent: Saturday, December 24, 2005 8:05 AM
To: equismetastock@xxxxxxxxxxxxxxx
Subject: [EquisMetaStock Group] Re: mr. jose siva-can you help me
 
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 LINKS