PureBytes Links
Trading Reference Links
|
No, you can't do that as the right-hand expression is evaluated on the
whole array before anything is assigned to the left-hand variable.
That means that "varx" is effectively constant during the expression
evaluation for the whole array. It's essentially the same as:
temp = IIf(C<Ref(L,-6) AND vary<6 AND NOT Ref(varx,-6),True,False);
varx = temp;
To do what you are suggesting would require a loop.
Regards,
GP
--- In amibroker@xxxxxxxxxxxxxxx, "sidhartha70" <sidhartha70@xxx> wrote:
>
> Hi All,
>
> Is it possible to have recursive boolean expressions...? i.e. the true
> or false of the current value of the array depends on whether a
> previous value of the array is true or false.
>
> So for example,
>
> varx = IIf(C<Ref(L,-6) AND vary<6 AND NOT Ref(varx,-6),True,False);
>
> Would that work... or are recursive booleans like this not allowed??
>
> TIA
>
------------------------------------
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|