I am testing out IB controller with a paper trading account.
I run;
ibc = GetTradingInterface("IB");
if( ibc.IsConnected() ) // check if connection to IB was successfull
{
ibc.PlaceOrder("DMP-ASX-STK-AUD", "BUY", 100, "MKT", 0, 0, "DAY", True ); // place order
}
I have accepted the agreement to manually transmit and I have set the flag here, but I still have to transmit manually...
Is there a setting elsewhere someone is aware of which will allow me to have the order transmitted without further intervention (e.g if I was looking at a stop being moved to n X ATR below the highest value since the buy etc)
Where did you do that?
Did you check API - precautions?
1 Like
Thanks, that's great!!
And in answer to your question, if you click to Enter Unlock Code, therei's a link to an Agreement which gives you a code.
2 Likes
That's really great. I had been searching through various posts and online resources to get this right. Thank you SpandexMan. Though this is mentioned in the AmiBroker Auto-Trading interface for Interactive Brokers 1.3.8 Read Me(IBController 1.3.8 READ ME) under CHANGES FOR VERSION 1.0.3, it is easy to miss out. It should have been mentioned in INSTALLATION INSTRUCTIONS or under REQUIREMENTS in that document. This could save hours of searching.