Hello, You don't need any magic. Simply call PlaceOrder with DAY as time in force or specific date/time (GTD) and it will cancel itself if limit is not reached / order is not filled for specified amount of time. http://www.amibroker.com/at/
YOu mal also add "allOrNone" attribute if you want order to be filled completely or canceled. Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: Ara Kaloustian To: AB-Main Sent: Wednesday, March 05, 2008 6:14 PM Subject: [amibroker] Autotrade - ibc code Has anyone written code - and is willing to share - to place limit order with autotrade and track and cancel / replace order if they are not filled? Thanks Ara
