PureBytes Links
Trading Reference Links
|
Oops,
> shapeVar = (y &16)*ShapeUpArrow;
should have been:
shapeVar = ((y &16)==16)*ShapeUpArrow;
or ;-)
shapeVar = (y &16)/16*ShapeUpArrow;
Dennis
On Apr 17, 2007, at 2:30 PM, Dennis Brown wrote:
> Hi,
>
> I have noted that some values can be boolean (0 or 1 only) for
> arrays. No problem with this. I also note that some values like
> plot styles can have binary values that are ORed together so that a
> combination of different flags can be tested in one value. No
> problem understanding this either. My problem is when I try to use
> this idea myself to set multiple flags in one value it does not seem
> to work. Perhaps I am getting floating point instead of integer
> values.
>
> Is this the right conceptual form?
>
> y[1] = 0;
> y[1] |= 1;
> y[1] |= 2;
> y[1] |= 8;
> y[1] |= 16;
>
> if (y[1] AND 8) {do this}
>
> shapeVar = (y &16)*ShapeUpArrow;
>
> Thanks,
> Dennis
>
>
> 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
>
>
>
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/
|