Interactive broker - IB Controller - Auto Trade with Amibroker
Below is the required link to setup all
Software to Download
IB Auto trading Bridge Download
https://www.amibroker.com/at/at1380beta.exe
IB Plugin for Indian market
For 32 Bit Amibroker
https://www.amibroker.com/bin/ib211/IB.dll 12
For 64bit Amibroker
https://www.amibroker.com/bin/ib211x64/IB.dll 20
User Guide and Help on this
https://www.amibroker.com/guide/h_ib.html
http://www.amibroker.com/at/
In order to find correct IB symbol using TWS (Traders Workstation):
Enter desired symbol in TWS, then click on the line with right mouse button and select Contract Info->Description menu. You will see the following window:
[image]
That is what you will see for stocks, indices and currencies (forex), but for some other symbols like futures, you will see slightly different picture, but the idea is the same :
[image]
Now simply use the information from this window to build correct AmiBroker s…
hi there... in need of help here. Just getting started on Amibroker and am sweating my ass trying to find my way around.
About the IB controller...
I'm a bit confused about many things and have struggled finding guidance and answers on the manual/webosphere.
At the most basic level, the very first things I want to do is bring quotes from IB into Amibroker. I managed to connect to IB and backfilling some stuff, but:
a) don't understand backfilling settings...whatever I change on databse sett…
Hi All,
I am also facing issue with index not updating in real time.
I am using NIFTY50-NSE-IND-INR symbol.
Any please help.
Thanks!
Hello,
I've been using the BrokerIB.exe together with Interactive Brokers for about five years, without any problem.
This is the code I have
ibc = GetTradingInterface("IB");
for ( i = 0; i < 10 && ( ibc.IsConnected() != 2 AND ibc.IsConnected() != 3 ); i++ )
{
ibc.Sleep( 200 );
}
This evening, it stopped working with the error message
COM/object handle is null
The AB log trace displays the same message. As far as I can tell, the connection between AB and the BrokerIB.exe is broken.
I…
http://www.amibroker.org/userkb/category/real-time-afl-applications/system-automation/
It has been written and told many times that ApplyStop is the switch for the BACKTESTER to appy the stop during backtesting. It is intended to simulate stops that are implemented at the brokerage level. Therefore it does not generate any "signals" to the outside world.
Now, in Interactive Brokers, like in ANY other brokerage there are STOP and LIMIT ORDERS that implement stops AUTOMATICALLY at the level of brokerage. So you don't really need to send any signal. They "just work" once appropriate…
not sure, what are you trading? Forex? Because there is a problem when your ticksize is less than 0.0001. In this case like I said best to use 0.5 or 1 instead of round( TickSize * 10000 ).
personally I do not have this issue with the order status. I currently trade futures only and the ticksize is always greater than 0.0001
I can give you code I use below. This is basically copied from what Tomasz put in http://www.amibroker.com/at/
see code below. So this code I call for instance to sell 1 …
First and foremost, use "Divide and conquer" strategy explained in this thread: How do I debug my formula?
If you have ANY problem - DIVIDE it into smaller parts until you go to absolute simplest code. If your code does not work, make it simpler.
The code presented in this thread is NOT complete. Expecting people to help you without following this How to ask a good question is absurd.
It is like calling your doctor and asking him:
"Hey doctor, please prescribe me some pills, I feel terrible …
You should ammend your formula so it provides some logging for example in case like this:
ibc = GetTradingInterface("IB");
if( ibc )
{
if( ibc.IsConnected() )
{
... your existing code
}
else
{
_TRACE("Ibc is NOT CONNECTED");
}
}
else
{
_TRACE("Ibc is NOT INSTANTIATED");
}
Then run with DebugView turned on and you will see what happens.
Symbol format
Equity Symbol
SBIN-NSE-STK-INR
BAJAJ-AUT-NSE-STK-INR
MCDOWELL--NSE-STK-INR
Index Symbol
BANKNIFTY-NSE-IND-INR
NIFTY50-NSE-IND-INR
Future Symbol
NIFTY22MARFUT-NSE-FUT-INR
BANKNIFTY22MARFUT-NSE-FUT-INR
SBIN22MARFUT-NSE-FUT-INR
BAJAJ-AUTO22MARFUT-NSE-FUT-INR
MCDOWELL-N22MARFUT-NSE-FUT-INR
Monthly OPTION SYMBOL
BANKNIFTY22MAR36100CE-NSE-OPT-INR
NIFTY22MAR17250CE-NSE-OPT-INR
SBIN22MAR490CE-NSE-OPT-INR
MCDOWELL-N22MAR900CE-NSE-OPT-INR
BAJAJ-AUTO22MAR3600CE-NSE-OPT-INR
Weekly OPTION SYMBOL
BANKNIFTY2232436100CE-NSE-OPT-INR
NIFTY2232417250CE-NSE-OPT-INR
3 Likes
@Yogyatrader did you know any other data plugin like interactive broker in India
Other are paid and high cost
GDFL - Rs 2775 per month per segment
Weekly Option Symbol For Oct, Nov, Dec
//For Oct
BANKNIFTY22O0643100CE-NSE-OPT-INR
NIFTY22O0618750CE-NSE-OPT-INR
//For Nov
BANKNIFTY22N1043100CE-NSE-OPT-INR
NIFTY22N1018750CE-NSE-OPT-INR
//For Dec
BANKNIFTY22D0843100CE-NSE-OPT-INR
NIFTY22D0818750CE-NSE-OPT-INR