View Single Post
  #27 (permalink)  
Old 11-14-2007, 01:21 PM
Coder Coder is offline
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
Reply With Quote