PureBytes Links
Trading Reference Links
|
Brad, I've seen cases where variable Ref() outputs can interfere with
previous outputs to give unusual results. This is specially the case
when the variable lookback periods in the Ref() function can be
positive as well as negative.
Code example of a possible problem:
BarsSince(VariableLookbackData = CurrentData).
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, "bradulrich33" <bradulrich@xxxx
> wrote:
> Jose,
>
> Can you elaborate on the issues with Ref() function?
>
> Thanks,
>
> Brad
>
> --- In equismetastock@xxxxxxxxxxxxxxx, "Jose Silva"
> <josesilva22@xxxx> wrote:
> Steve, beware of variable Ref() functions - the variable lookback
> often interferes with previous lookback plots, and can give strange
> or unexpected results.
>
> Anyway, here's your code using Patrick's Forum Dll:
>
> ---8<--------------------------------
> { Forum DLL available for free at:
> http://forum.equis.com }
>
> {Get the highest close in most recent x bars}
> x:=5;
>
> {LLV in the preceding x bars}
> y:=3;
>
> index:=BarsSince(C=HHV(C,x));
> tmpLLV:=
> LLV(ExtFml("ForumDLL.VarREF",L,-index),y);
>
> tmpLLV
> ---8<--------------------------------
>
>
> jose '-)
> http://www.metastocktools.com
------------------------ Yahoo! Groups Sponsor --------------------~-->
Help Sudanese refugees rebuild their lives through GlobalGiving.
http://us.click.yahoo.com/hjNroD/EbOLAA/cosFAA/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/
|