Can Tradestation 2000i easylanguage call a dll written in C#?

Discussion in 'Automated Trading' started by m4a1, Feb 3, 2010.

  1. m4a1


    Is this possible?

    Also, how does one read/write to the Tracking Center in Tradestation 2000i?
  2. no, unfortunately c# does not allow exporting of c# function calls to programs.

    there are several ways you could do it, but you need an intermediary piece of software.

    tradestation allows you to call a dll that supports exporting of functions, usually these are c or c++ dlls but they could be anything (delphi, fortran, whatever).

    you could build an exe in c# that took functions as an argument, then you could build a c++ dll that called this exe, and call this dll from tradestation.

    you could also re-write your code in a language that allowed dlls that supported extern calls (again such as c++), and then just call this dll directly.

    you can see source code examples of this on the tradelink site, as well allow people to send and cancel orders from tradestation for any of the brokers supported by tradelink for free.
  3. m4a1


    thanks for this.

    do you know of a way to "catch" the order from Tradestation 2000i and then submit it to TWS without having to call a dll from easylanguage?
  4. maxpi


    If memory serves, there were guys that wrote a text file from their strategies and it was read by the Tracking Center. You have to just discover the name of the text file that the Tracking Center reads.. has lots of threads on TS2ki btw...
  5. Have you looked into catching the emails from TS and turning them into orders? There are quite a few products that do this.
  6. m4a1


    please elaborate. what emails and do these emails get sent immediately?
  7. I cannot speak to TS 2000i but newer versions of TS have the ability to send emails for each trade alert. I vaguely remember hearing this feature also exists in TS 2000i as well.

    These programs run their own SMTP server which then takes the alerts and converts them to actual trades with a broker. Openecry has this functionality built-in and there are many other programs that support this, plus you can write your own.
  8. File under: "kluge so large it can be seen from outer space"
  9. Yup, pretty much. But it does work.....
    #10     Feb 4, 2010