Forex
Google
New signals service!

Go Back   Forex Trading > Programming > Metatrader Programming


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (3) Thread Tools Display Modes
  #21 (permalink)  
Old 10-25-2007, 02:52 PM
Senior Member
 
Join Date: Oct 2006
Posts: 133
tsdpka is an unknown quantity at this point
Quote:
Originally Posted by omelette View Post
The API is available here - twslink : TWSLink

As I suggested, it may not even be possible to chart IB price-data - there is no problem displaying the data as a moving average, but price bars, maybe...

Just did some checking and there is an EA called 'Custom Period_v1' that updates an offline chart in realtime, so using this technique, it may be possible to chart IB pricedata. Not for the faint-hearted though as you also will have to become very familiar with the 30-40 or so API commands...
omelette

thx a lot for the information. i'll check it and hope it's not too compicated because API's are a little bit to technical to me. i think the correct link is this one. twslink the other you mentioned is more reffering to the yahoo group.

kind regards
tsdpka
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 10-25-2007, 03:02 PM
el cid's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 970
el cid is an unknown quantity at this point
Quote:
Originally Posted by tsdpka View Post
omelette

thx a lot for the information. i'll check it and hope it's not too compicated because API's are a little bit to technical to me. i think the correct link is this one. twslink the other you mentioned is more reffering to the yahoo group.

kind regards
tsdpka
Does the interactive data feed make a material difference?

I personally don't believe 1 or 2 ticks make any difference .

Isn't his a bit like the guys who claim going to ECNS will make them profitable?They poxy strategies can't sustain a 1 or 2 pip variable ,how can their strategies be worth anything.Probably better to ditch those strategies

El cid
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 10-25-2007, 03:35 PM
Senior Member
 
Join Date: Oct 2006
Posts: 133
tsdpka is an unknown quantity at this point
the feed is intented for non forex realted data

Quote:
Originally Posted by el cid View Post
Does the interactive data feed make a material difference?

I personally don't believe 1 or 2 ticks make any difference .

Isn't his a bit like the guys who claim going to ECNS will make them profitable?They poxy strategies can't sustain a 1 or 2 pip variable ,how can their strategies be worth anything.Probably better to ditch those strategies

El cid
ElCid

you are right . the feed is intended to be used only for for non forex related instruments like stock indices, futures, stocks, etc. forex is already doing excellent and doesn't need further datafeeds.

regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 11-14-2007, 10:04 AM
Junior Member
 
Join Date: Feb 2006
Posts: 27
Coder is on a distinguished road
Ib -> Mt4

Hello,

I wrote some software about 12 months ago that integrated multiple brokers
IB, EFX and MT4 to feed into some custom software, then the software sent
orders back to the brokers.

The sending of orders is not a problem, and it can be done real-time,
independent of a MT4 chart receiving a tick.

The chart display is a bit tricky. The only thing I can think of is to plot a line for the
BID and a line for the ASK. Any other ideas?

The problem with the IB API is that they keep releasing new versions.
Every time they do, something else breaks........

Coder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 11-14-2007, 10:14 AM
el cid's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 970
el cid is an unknown quantity at this point
Quote:
Originally Posted by Coder View Post
Hello,

I wrote some software about 12 months ago that integrated multiple brokers
IB, EFX and MT4 to feed into some custom software, then the software sent
orders back to the brokers.

The sending of orders is not a problem, and it can be done real-time,
independent of a MT4 chart receiving a tick.

The chart display is a bit tricky. The only thing I can think of is to plot a line for the
BID and a line for the ASK. Any other ideas?

The problem with the IB API is that they keep releasing new versions.
Every time they do, something else breaks........

Coder
Coder

The orders have to come from Metatrader demo accounts USING VARIOUS SIGNALS/SYSTEMS COMPILED ON MQ4 and executed on I B

Regards

El
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 11-14-2007, 11:46 AM
Senior Member
 
Join Date: Jan 2006
Posts: 1,084
omelette is on a distinguished road
Quote:
Originally Posted by Coder View Post
Hello,

I wrote some software about 12 months ago that integrated multiple brokers
IB, EFX and MT4 to feed into some custom software, then the software sent
orders back to the brokers.

The sending of orders is not a problem, and it can be done real-time,
independent of a MT4 chart receiving a tick.........

Coder
I realise that your software could send orders 'real-time' to IB, but if it is a true API (as opposed to an app.) then the trade decisions must be made by Metatraders EA's, and EA's are incapable of running real-time, only in tick-time - short of coding your strategy in an infinite loop but last time I checked, Metatrader locks out any further user input when you do this...

I would be very interested if you had found a way round this though...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 11-14-2007, 12:21 PM
Junior Member
 
Join Date: Feb 2006
Posts: 27
Coder is on a distinguished road
Mt4 -> Api

Hello el cid,

I will code something up next week. I will integrate IB & EFX.
It will be a DLL that you reference from an EA.

Omelette,

I will share with you my trick.

Instead of writing the code in the start() function, write it in the init() function
like this:

int init()
{
//Do any init stuff here........

while(1 < 2) //Infinate loop
{
//Main program code here
}
}

int start()
{
return(0);
}

I find it works great. The only thing is that closing an EA via the EA menu
is a little slow. My EAs are more responsive, not slower.
Give it a try.

Coder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 11-14-2007, 01:13 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,084
omelette is on a distinguished road
Coder, thanks for that. I think it was you that posted this same tip regarding programming a real-time clock display on TSD already - I tried it then, and it works fine!

I also tried coding the 'Lucky' EA the same way though (using the Twslink API) and couldn't get it to work properly - probably my bad, I may have another look!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 11-14-2007, 08:06 PM
Junior Member
 
Join Date: Feb 2006
Posts: 27
Coder is on a distinguished road
Sleep(250);

Sorry,

Forgot the Sleep(250); at the end of the while loop.

Should be:

int init()
{
//Do any init stuff here........

while(1 < 2) //Infinate loop
{
//Main program code here

Sleep(250); //Adjust to suit
}
}

Coder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 11-19-2007, 06:00 AM
Junior Member
 
Join Date: Feb 2006
Posts: 27
Coder is on a distinguished road
Quote:
Originally Posted by Coder View Post
I will code something up next week. I will integrate IB & EFX.
It will be a DLL that you reference from an EA.
You will have to wait. I have some paid work to take care of this week.

Coder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/10362-metatrader-interactive-broker-interface.html
Posted By For Type Date
Forex Expert Advisors - Other Metatrader Broker Resources This thread Refback 02-23-2008 02:48 PM
Metatrader Interactive broker interface by Forex trading system This thread Refback 02-07-2008 10:03 AM
forex » Metatrader Interactive broker interface This thread Pingback 10-26-2007 12:24 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting interactive brokers to metatrader clam61 Metatrader 4 2 09-22-2007 02:29 PM
Is there any metatrader broker offering currency forwards ? TheEconomist Metatrader brokers 0 05-17-2007 06:55 AM
GMT +3 Broker? marcf Metatrader brokers 4 04-03-2007 10:37 AM
Read file for start/stop time? DLL interface or csv/txt? emjay Indicators - Metatrader 4 6 03-04-2007 10:50 PM
Interactive Brokers Ducati General Discussion 1 07-11-2006 08:09 AM


All times are GMT. The time now is 07:07 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.