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" <[EMAIL PROTECTED]>
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
> 
> 
> 

Reply via email to