There is a note in the documentation at  http://www.amibroker.com/at/
<http://www.amibroker.com/at/>
It says:
"Frankly auto-trading interface is NOT indented to be used in
indicators. It is intended to be used in AA window."

It looks like other developers are ignoring this advice, and maybe I
will be forced to do the same. However, I'm not convinced an indicator
will do everything I wish. It will be necessary to poll for asynchronous
responses. It is doable, but inefficient.

-Steve

--- In [email protected], dingo <[EMAIL PROTECTED]> wrote:
>
> Why not code your system in an indicator since it will already do the
things
> you wish?
>
> d
>
> On Fri, Oct 17, 2008 at 6:05 PM, Steve Davis <[EMAIL PROTECTED] wrote:
>
> > Thank you Tomasz for the reply.
> >
> > 1. Does RequestTimedRefresh work in AA or only in Indicator windows?
> >
> > 2. As a suggestion, it would be nice in a future version if AB could
> > execute the afl upon receiving a response from TWS. So the afl could
> > do something like this:
> >
> > if (Status("ActionEx") == actionOrderResponse) // Future enhancement
> > {
> >  while ((orderId = ibc.getNextOrderResponse()) != "")
> >  {
> >    ... process any newly arrived order responses
> >  }
> > }
> >
> > Thanks,
> > Steve
> >
> > --- In [email protected], "Tomasz Janeczko" groups@ wrote:
> > >
> > > Hello,
> > >
> > > You can poll the status of any order you have submitted
> > differentiating them via OrderId
> > > that you get once you call PlaceOrder.
> > >
> > > You can ensure that your formula is executed in constant intervals
> > as often
> > > as every second using RequestTimedRefresh.
> > >
> > >
> > > Best regards,
> > > Tomasz Janeczko
> > > amibroker.com
> > > ----- Original Message -----
> >  > From: "Steve Davis" <_sdavis@
> > > To: [email protected]
> > > Sent: Friday, October 17, 2008 11:25 PM
> > > Subject: [amibroker] Event driven afl with IBController?
> > >
> > >
> > > > I'm just getting started with the IBController. I am planning to
run
> > > > my afl in the AA, not in an indicator. So the first question is
what
> > > > event(s) will cause my code to execute? How will my code be
notified
> > > > of asynchronous responses to my requests?
> > > >
> > > > For example:
> > > > How will my code know when IB responds to an order request?
> > > > How will my code know when an order is filled?
> > > > If I place multiple orders without waiting for responses how
will my
> > > > code know which order IB is responding to when the response
eventually
> > > > arrives? I am assuming responses will not necessarily arrive in
the
> > > > same order as the requests.
> > > >
> > > > Thanks,
> > > > Steve
> > > >
> > > >
> > > >
> > > > ------------------------------------
> > > >
> > > > **** IMPORTANT ****
> > > > This group is for the discussion between users only.
> > > > This is *NOT* technical support channel.
> > > >
> > > > *********************
> > > > TO GET TECHNICAL 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
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> > ------------------------------------
> >
> > **** IMPORTANT ****
> > This group is for the discussion between users only.
> > This is *NOT* technical support channel.
> >
> > *********************
> > TO GET TECHNICAL 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
> >
> >
> >
> >
>

Reply via email to