[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*****SPAM***** [amibroker] get Buy/SELL fill px/per each orderID via ibcontroller (& 2 other questions...)



PureBytes Links

Trading Reference Links

SPAM: -------------------- Start SpamAssassin results ----------------------
SPAM: This mail is probably spam.  The original message has been altered
SPAM: so you can recognise or block similar unwanted mail in future.
SPAM: See http://spamassassin.org/tag/ for more details.
SPAM: 
SPAM: Content analysis details:   (5.10 hits, 5 required)
SPAM: USER_AGENT         (-0.5 points) Found a User-Agent header
SPAM: COMMENT            (0.8 points)  Found a Comment header
SPAM: TO_BE_REMOVED_REPLY (0.4 points)  BODY: Says: "to be removed, reply via email" or similar
SPAM: SPAM_PHRASE_05_08  (1.6 points)  BODY: Spam phrases score is 05 to 08 (medium)
SPAM:                    [score: 5]
SPAM: DATE_IN_PAST_48_96 (1.4 points)  Date: is 48 to 96 hours before Received: date
SPAM: FORGED_YAHOO_RCVD  (1.4 points)  'From' yahoo.com does not match 'Received' headers
SPAM: 
SPAM: -------------------- End of SpamAssassin results ---------------------

hi all!

2 naive questions from a new user:

(a) i am working with ibcontroller and would like it to return from tws the BUY/SELL SHORT fill prices - per each orderID - so that i can later use these IDs as %gain triggers in 
conditional SELL/BUY TO COVER orders. what would i do within either 
    (1) the AFL code using a pre-existing command, or 
    (2) write a command in AFL, or 
    (3) use the C++ DLL builder to achieve my goal somehow, or 
    (4) some other workaround i don't know enough to inquire about?

(b) how can i work with BID/ASK prices and sizes instead of OHLC or AVERAGE?

(c) changing now for a moment to the amibroker backtest (rather than API) environment, if I use the default AFL trade delay setting is that default setting (in the AFL code NOT the 
GUI) set to 
    (1) zero or a one?
    (2) if it is zero AND i want the average price as my fill price AND i get my buy signal at the END of the bar, am i backtesting a scenario that uses forward information??? - - in that 
i am modeling the acquisition of shares at a price (in this example the average price of the bar) that is chronologically prior to my knowing that i even have a signal and that i want 
to acquire shares at all?

thks for your help, patience and grace when presented with questions from the naive among us -

=--timekeeper




------------------------------------

**** 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

<*> 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/