Quote from psytrade:
ada, i didn't even know you could program limit order backtesting in there... I just do open / close orders with some slippage built in.
limit ordor:
if(OrderType == "MKT") orderID = ib.PlaceOrder(sTicker, "BUY", pContracts, "MKT", 0, 0, "GTC", True, tickMult, "outsideRTH");
else if(OrderType == "STP") orderID = ib.PlaceOrder(sTicker, "BUY", pContracts, "STP", 0, price, "GTC", True, tickMult, "outsideRTH");
else if(OrderType == "LMT") orderID = ib.PlaceOrder(sTicker, "BUY", pContracts, "LMT", price, 0, grdstr, True, tickMult, "outsideRTH");
amibroker is not the best for auto. That may be the reason the Connector with IB is still in beta. I guess IB does not to be liable if ami screws up users. I picked amib without auto in mind long ago.