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

Re: [EquisMetaStock Group] Ref function help sought



PureBytes Links

Trading Reference Links

Roy, just to clarify.  I mistyped "not" for "now" in my message 
below.  That is, I can now [not] do what I was trying to do.

I am not sure about your comment on LastValue not being of value in 
backtesting.  Are your referring to use in the System tester?  My 
use in the Explorer is of the form:

Ref(DI(), -(LastValue(LLVBars(cycle formula,Z periods)))

This lets me look back to the last trough of the cycle formula and 
use the corresponding value of DI()at the time of the trough.  I can 
then compare it with the current value of DI() and consider 
divergence of DI().

What does the +PREV-PREV do?

--- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxxx> 
wrote:
> TAtrader
> 
> > Thanks for the comments.  I tryied using the LastValue function 
in DI
> > () but it would not work; kept getting a ")" error when I tried 
to
> > enter it (and matching () were present).
> 
> Without knowing your "periods" formula I can't guess at what the 
cause of
> your error might be. However I feel that the problem is only a 
minor
> technical one rather than an insurmountable one. When the method I 
suggested
> fails there's usually another way the formula can be written that 
will work
> as required, or a very good reason why it will never work.
> 
> > However, based on your suggestion of LastValue, I tried it in the
> > form of Ref(DI(), -(LastValue(X formula)) and it works!!  Thus, I
> > can not test for divergences from a current value with a prior 
value
> > X periods ago where X is detemined by a valley in a differnt 
cycle
> > function.  I can not match current cycle low to prior cycle low 
of a
> > different parameter.  Just what I was looking for.
> 
> LastValue() converts a variable to a constant but it is of no use 
for
> backtesting in the form of "LastValue(X formula)". That's where the
> +PREV-PREV comes in handy.
> 
> > Thanks for setting me on a good path!
> 
> Roy


------------------------ Yahoo! Groups Sponsor ---------------------~-->
ReplayTV: CNet Ranked #1 over Tivo!
Instant Replay & Pause live TV.
Special Sale: 50% off!
http://us.click.yahoo.com/UUMW7B/.5qGAA/ySSFAA/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/