PureBytes Links
Trading Reference Links
|
Dusant,
Thanks for your quick reply... and thanks for pointing ValueWhen,
which I have never heard of before!
Unfortunately, I tried your suggestion and I am still having the
same issue.
What the LLV complains about is the fact that instead of entering a
fixed period, I pass a variable:
LLV(VVP,PerSinceLower) ... in this situation, LLV accepts the VVP
variable (whih is the result of my formula), but does not accept the
PerSinceLower (which is a variable containing the amount of periods
since the stock crossed -1 from above).
Thanks again!
Martin
--- In equismetastock@xxxxxxxxxxxxxxx, "Dusant@xxxx" <dusant@xxxx>
wrote:
> Martin,
> Without going into your formula, I can just suggest to "fix" the
variable value with this method.
> Var:= valuewhen(your variable) function.
> This way the LLV will accept your var value.
> Dusant
> Chief Architect
> www.candlestrength.com
>
> ----- Original Message -----
> From: "mlaporte99" <mlaporte99@xxxx>
> To: <equismetastock@xxxxxxxxxxxxxxx>
> Sent: Friday, March 05, 2004 19:46 PM
> Subject: [EquisMetaStock Group] LLV: "...must contain only
constant data"
>
>
> > Hello,
> >
> > I have built a custom formula, which always returns a number
> > between -5 and 5 for each period.
> >
> > I want to test this formula so a buy signal is flagged each time
the
> > value crosses -1 from under. *BUT*, I also want to make sure
that
> > before crossing -1, the result of my formula was less than -2
during
> > its "run" under.
> > In other words, I do not want to buy a stock that crosses -1,
but
> > that did not previously go under -2 during its run.
> >
> > To accomplish this, I have written the following in my "Buy
Order":
> >
> > <<<---------Formula---------
> > VVP:= FML("Martin(VVP)"); {ref to my formula}
> > PerSinceLower:=BarsSince(VVP<-1); {Periods since result has been
> > under -1}
> > LowestValue:=LLV(VVP,PerSinceLower); {Tries to determine the
> > lowest value since result has been under -1}
> > ---------Formula--------->>>
> >
> >
> > My problem is that the LLV does not accept a variable for the
> > PERIODS parameter.
> >
> > Does anyone have a suggestion? Any help will be greatly
appreciated.
> >
> > Thanks!
> > Martin
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/
|