PureBytes Links
Trading Reference Links
|
TAtrader
Try this format for your "X" periods DI() function courtesy of Corey Saxe.
DI(LastValue("my X integer"+PREV-PREV))
For some situations the LastValue() can be can be in a previously created
variable (I think), other times it must be inside the function it's required
for, and other times it won't work at all. I know I've used it successfully
inside ADX() so it I would expect it to work inside DI().
Try it and see.
Roy
----- Original Message -----
From: "taforme" <no_reply@xxxxxxxxxxxxxxx>
To: <equismetastock@xxxxxxxxxxxxxxx>
Sent: Sunday, September 21, 2003 3:50 AM
Subject: [EquisMetaStock Group] Ref function help sought
> 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
>
>
>
> 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/
>
>
>
>
------------------------ 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/
|