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

[EquisMetaStock Group] Re: not a recognize name



PureBytes Links

Trading Reference Links

ptc_man3,

The cursor falls at the problem.

nDays is not defined. Try this:

day:=Input("Today[0], nDays[1]",0,8,0);
tr:=atr(8);
a:=C + tr;
x:=ref(c,-Day)+ref(a,-Day);
if(day=0,a,if(day=1,x,0));


Question, what happens if the input value is greater than 1 ?

Preston



--- In equismetastock@xxxxxxxxxxxxxxx, "ptc_man3" <ptc_man3@xxx> 
wrote:
>
> Hi
> 
> Using this input
> 
> day:=Input("Today[0], nDays[1]",0,8,0);
> 
> why does he gives the error
> 
> This is not a recognized name, constant or operator.
> 
> with this line of code
> 
> tr:=atr(8);
> a:=C + tr;
> x:=ref(c,-nDays) + ref(a,-nDays);
> if(day=0,a,if(day=1,x,0));
> 
> regards
> 
> 
> 
> [Non-text portions of this message have been removed]
>




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/