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

Re: [EquisMetaStock Group] Ref function help sought...found



PureBytes Links

Trading Reference Links

(slithly improved version of the one posted last week)

{divergence rsi top}
q:=input("what time lenght for rsi",1,200,13);
tpc:=if(h>=ref(h,-1)
and h>=ref(h,+1) and
ref(h,-1)>ref(h,-2) and
ref(h,+1)>ref(h,+2),1,0);
k:=rsi(c,q);
q1:=if(c>mov(c,20,s) and (k>50),1,0);
tic:=if(k>=ref(k,-1)
and k>=ref(k,+1) and
ref(k,-1)>ref(k,-2) and
ref(k,+1)>ref(k,+2),1,0);
tp2:=valuewhen(1,tpc=1 and q1=1,h);
tp1:=valuewhen(2,tpc=1 and q1=1,h);
ti2:=valuewhen(1,tic=1 and q1=1,k);
ti1:=valuewhen(2,tic=1 and q1=1,k);
if((((tp2>tp1) and (ti2<=ti1)) or
((tp2=tp1) and (ti2<ti1))) and (h=hhv(h,13),1,0)

{divergence rsi bot}
q:=input("what time lenght for rsi",1,200,13);
tpc:=if(l<=ref(l,-1)
and l<=ref(l,+1) and
ref(l,-1)<ref(l,-2) and
ref(l,+1)<ref(l,+2),1,0);
k:=rsi(c,q);
q1:=if(c<mov(c,20,s) and (k<50),1,0);
tic:=if(k<=ref(k,-1)
and k<=ref(k,+1) and
ref(k,-1)<ref(k,-2) and
ref(k,+1)<ref(k,+2),1,0);
tp2:=valuewhen(1,tpc=1 and q1=1,l);
tp1:=valuewhen(2,tpc=1 and q1=1,l);
ti2:=valuewhen(1,tic=1 and q1=1,k);
ti1:=valuewhen(2,tic=1 and q1=1,k);
if((((tp2<tp1) and (ti2>=ti1)) or
((tp2=tp1) and (ti2>ti1))) and (l=llv(l,13)),1,0)


look at the atached chart of daily msft,
doesn't give too many signal but they work....

i'm sure it can be improved either thru looking for
near simultneous divergences on different indicators
or using other indicators althogheter

you can, of course swap rsi(c,q) by any other of your
taste



--- taforme <no_reply@xxxxxxxxxxxxxxx> wrote:
> Yes, I am working on divergences between current
> value of DI() and a 
> prior value of DI() where both occur at a valley in
> a cycle 
> oscillator.
> 
> I am looking for a formula that will run as part of
> an Exploration, 
> as opposed to an Expert.  Thanks for the comments
> but I do not 
> believe that using an Input approach will work since
> the value X 
> will be different for each stock as the exploration
> runs.
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, le corbeaux
> masque 
> <lecorbeauxmasque7@xxxx> wrote:
> > this will return the value of MDI
> > the last time low was the lowest low value in X
> period
> > 
> > 
> > k:=input("what is all this about",1,200,13);
> > k1:=inpt("set time lenght for mdi",1,200,13);
> > k0:=If(L=LLV(L,k),1,0);
> > ValueWhen(1,k0=1,MDI(k1));
> > 
> > 
> > working on divergences ?
> > 
> > 
> > --- taforme <no_reply@xxxxxxxxxxxxxxx> wrote:
> > > I would like to obtain a value of the function
> DI()
> > > a number of 
> > > periods ago.  I understand how to use Ref(DI(),
> -X)
> > > where X is a 
> > > constant,e.g. 7 periods ago would be Ref(DI(),
> -7). 
> > > However, I 
> > > would like for X to be a variable integer
> determined
> > > for each stock 
> > > where X is determined by a LLVBars(data,#)
> function.
> > > 
> > > 
> > > More specifically, I want to compare a current
> DI()
> > > value with a 
> > > past DI() value with the number of periods ago
> of
> > > DI() determined to 
> > > coinside with a low value of another cycle based
> > > function for the 
> > > same stock.
> > > 
> > > When I put the function that always results in
> an
> > > integer, e.g. 8 to 
> > > 30, into the X position of the Ref function, I
> get
> > > an error stating 
> > > that the Ref function requires a constant for X.
> > > 
> > > Is there another approach that would let me
> > > accomplish my desire?
> > > 
> > > Thanks in advance for helpful comments,
> > > TAtrader
> > > 
> > > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> > http://sitebuilder.yahoo.com
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Remanufactured Ink Cartridges & Refill Kits at MyInks.com for: HP $8-20. Epson $3-9, Canon $5-15, Lexmark $4-17. Free s/h over $50 (US & Canada).
http://www.c1tracking.com/l.asp?cid=6351
http://us.click.yahoo.com/0zJuRD/6CvGAA/qnsNAA/BefplB/TM
---------------------------------------------------------------------~->

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/ 


Attachment: Description: ""