PureBytes Links
Trading Reference Links
|
David:
Have you tried "LastValue"?
b
--- nowakdj <david_j_nowak@xxxxxxxxxxx> wrote:
> I am trying to close all my open positions using the IB
> trading
> interface at the end of the trading day at the end of the
> week. I
> have some AFL code that contains the following code
> segment...
>
> if( DayOfWeek() == 5 AND TimeNum() > 130000 )
> {
> ibc = GetTradingInterface("IB");
> .
> .
> .
>
> )
>
> In this code segment I am trying to close all open
> positions after a
> time of 13:00:00 on Friday. This turns out to be a syntax
> error
> because TimeNum() returns an array value and 130000 is a
> constant.
> How can I make this work?
>
> Thanks in advance for your help.
>
> David Nowak
>
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/
|