| 
 PureBytes Links 
Trading Reference Links 
 | 
You could try this
LongTrade = flip(buy,sell);
ShortTrade = flip(short,cover);
On 6/9/05, Bill Crawford <crawdady@xxxxxxxxx> wrote:
> I am working in array mode (vs. a loop) and want to be able to
> determine if I am long, short, or have no position.  Is there a
> variable that has this information already, or does anyone have a
> suggestion for how to do it while in array mode.
> 
> Alternatively, I could write it into a loop, but I want to use it for
> changing the background color of the price chart on all of my systems.
>  (i.e. if long, background color is yellow, if short it is light
> green, and white if no position.
> 
> Thanks for the help
> 
> 
> Bill
> 
> 
> 
> 
> 
> 
> 
> 
> 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 other support material please check also:
> http://www.amibroker.com/support.html
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/
------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 
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 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/
<*> 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/
 
 |