Check out http://www.thedml.com/pages/products/asi.html
for a whole load of free DLLs (the “ASI” group) that will
accept variable inputs in the standard MSFL format. For example, in your case
the following might do the trick:
ExtFml(“ASI.LLV”,ref(L,index),y)
From:
equismetastock@xxxxxxxxxxxxxxx [mailto:equismetastock@xxxxxxxxxxxxxxx] On Behalf Of Stephen Dawson
Sent: Monday, August 29, 2005 2:55
AM
To: equismetastock@xxxxxxxxxxxxxxx
Subject: [EquisMetaStock Group]
This variable or expression must contain only constant data
Hi Guys,
What I am trying to do is;
1. Get the highest close in the preceding x bars
(including the current bar).
2. Once I have that, I want to get the lowest low
value of the preceding y bars before that.
I have written the following four lines of code
which I though would have achieved that (or pretty close to it).
{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))*(-1);
tmpLLV:=LLV(Ref(L,index),y);
tmpLLV
There is probably an error in the last line that I
may be a bar or two out. The issue I having is that the Ref(L,index)in the last
line. I am ghetting the error "This variable or expression must contain
only constant data."
If I place a number where the index variable is
the code saves. As it is above though I am getting the constant data error
message.
If someone could offer apointer or two on how to
get around this I'd appreciate it.
Regards
Steve
YAHOO! GROUPS LINKS