Quote:
Originally Posted by omelette
Both TWS and MT must be running, as you will be using TWS prices - which also answers your other question. There is nothing to stop you using MT prices of course, but that would be slightly daft!
I am finding it a complete b*tch to use though, as real simple stuff is incredibly difficult to get working properly. This is not a criticism of TWSLINK btw, which (mostly) does exactly what it is designed to do - allow access to TWS trade functions.
|
Omlette is right.. Keep in mind that any DLL that an EA calls, is loaded and unloaded with each call. Its in effect, stateless. EA's only work when a tick triggers it.. So, for this reason, we cheat and run our EA's in an endless loop, polling several times a second.. Its really the only way you can get an EA to talk to the outside world.
So, its a lot of work, but can be done.