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

Re: [EquisMetaStock Group] This variable or expression must contain only constant data



PureBytes Links

Trading Reference Links

Hi Jose and Teclogeo,

Thanks very much. This did the trick.

Regards
Steve

--- In equismetastock@xxxxxxxxxxxxxxx, "teclogeo" <teclogeo@xxxx> 
wrote:
> Check out  <http://www.thedml.com/pages/products/asi.html>
> 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
> 
> 
> 
> 
> 
> SPONSORED LINKS 
> 
> 
> Business
> <http://groups.yahoo.com/gads?
t=ms&k=Business+finance+course&w1=Business+fin
> 
ance+course&w2=Business+to+business+finance&w3=Small+business+finance&
w4=Bus
> 
iness+finance+consultant&w5=Business+finance+magazine&w6=Business+fina
nce+sc
> hools&c=6&s=185&.sig=I8jDsORmsaYn0BeqghcJ2w>  finance course 
> 
> Business
> <http://groups.yahoo.com/gads?
t=ms&k=Business+to+business+finance&w1=Busines
> 
s+finance+course&w2=Business+to+business+finance&w3=Small+business+fin
ance&w
> 
4=Business+finance+consultant&w5=Business+finance+magazine&w6=Business
+finan
> ce+schools&c=6&s=185&.sig=fCzze7cxm1K7TVKkzAaOrA>  to business 
finance 
> 
> Small
> <http://groups.yahoo.com/gads?
t=ms&k=Small+business+finance&w1=Business+fina
> 
nce+course&w2=Business+to+business+finance&w3=Small+business+finance&w
4=Busi
> 
ness+finance+consultant&w5=Business+finance+magazine&w6=Business+finan
ce+sch
> ools&c=6&s=185&.sig=v9sWAno7Kz4WuL8Tadcdhw>  business finance 
> 
> 
> Business
> <http://groups.yahoo.com/gads?
t=ms&k=Business+finance+consultant&w1=Business
> 
+finance+course&w2=Business+to+business+finance&w3=Small+business+fina
nce&w4
> 
=Business+finance+consultant&w5=Business+finance+magazine&w6=Business+
financ
> e+schools&c=6&s=185&.sig=d1xwT3WL0E6XBf6cAV5BXA>  finance 
consultant 
> 
> Business
> <http://groups.yahoo.com/gads?
t=ms&k=Business+finance+magazine&w1=Business+f
> 
inance+course&w2=Business+to+business+finance&w3=Small+business+financ
e&w4=B
> 
usiness+finance+consultant&w5=Business+finance+magazine&w6=Business+fi
nance+
> schools&c=6&s=185&.sig=qphRINaNuVm_6bwoQxgUmg>  finance magazine 
> 
> Business
> <http://groups.yahoo.com/gads?
t=ms&k=Business+finance+schools&w1=Business+fi
> 
nance+course&w2=Business+to+business+finance&w3=Small+business+finance
&w4=Bu
> 
siness+finance+consultant&w5=Business+finance+magazine&w6=Business+fin
ance+s
> chools&c=6&s=185&.sig=1RfnhYZpV99RKWRZzSH4gA>  finance schools 
> 
>  
> 
>   _____  
> 
> YAHOO! GROUPS LINKS 
> 
>  
> 
> *	 Visit your group "equismetastock
> <http://groups.yahoo.com/group/equismetastock> " on the web.
>   
> *	 To unsubscribe from this group, send an email to:
>  equismetastock-unsubscribe@xxxxxxxxxxxxxxx
> <mailto:equismetastock-unsubscribe@xxxxxxxxxxxxxxx?
subject=Unsubscribe> 
>   
> *	 Your use of Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/>  Terms of Service. 
> 
>  
> 
>   _____







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Put more honey in your pocket. (money matters made easy).
http://us.click.yahoo.com/r7D80C/dlQLAA/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/