tradestation SDK - futures io
futures io futures trading



tradestation SDK


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one johnsondel with 3 posts (0 thanks)
    2. looks_two Outlier with 2 posts (0 thanks)
    3. looks_3 ejtrader with 1 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 4,615 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 6 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

tradestation SDK

(login for full post details)
  #1 (permalink)
Traverse City MI
 
 
Posts: 4 since Jan 2013
Thanks: 0 given, 0 received

I'm considering subscribing to TradeStation and transfer some or all of my accounts from thinkorswim. I am a c++ programmer and like the idea of extending the EasyLanguage for my own applications. I'm not interested in joining the programmer network which requires paying higher data fees.

It sounds like tskit.dll comes with the platform but I need the header files (e.g. tskit.tlh and one other). Can someone tell me if the tskit.tlh file is part of the tradestation installation? Also does anyone know whether you can create dll libraries that can be used in tradestation without joining the programmers network?

Thank

D Johnson

Reply With Quote

Can you help answer these questions
from other members on futures io?
Second Entry Indicator (Looking for testers/feedback)
NinjaTrader
What blockvolume is visible? - order processing
NinjaTrader
ZigZag with Depth and Backstep
EasyLanguage Programming
COTbase for quant trading?
Elite Algorithmic NinjaTrader Trading
Automatic pattern research with NT
Elite Algorithmic NinjaTrader Trading
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Selling Options on Futures?
109 thanks
Battlestations: Show us your trading desks!
108 thanks
Rank your Futures vs Stocks trading priority
55 thanks
Want your NinjaTrader indicator created, free?
27 thanks
Whats this confusion with margins?
21 thanks
 
(login for full post details)
  #3 (permalink)
Germany
 
Experience: Advanced
Platform: TradeStation
Trading: Futures
 
Posts: 88 since May 2012
Thanks: 53 given, 93 received


I don't think you need any specific SDKs. It's just a matter of conducting DLL calls. You first declare an external DLL function in TS like this:

DefineDLLFunc: "C:\TWSLINK2.DLL",int, "CONNECT",
LPSTR,{sHost}
int,{iport}
int,{startingClientID}
int;{timeout}

and then make the call in TS like this:

value1 = CONNECT("",7496,1,50);

In this example, the first integer was the return variable that's now in value1. You can leave that out if you need no return and just make the call like this in EL:

CONNECT("",7496,1,50);

It should work right away with any DLLs that can be called.

Reply With Quote
 
(login for full post details)
  #4 (permalink)
Traverse City MI
 
 
Posts: 4 since Jan 2013
Thanks: 0 given, 0 received

Response to Outlier:

The example that you give is from the the EasyLanguage call to the dll. What I'm looking at is from the perspective of the C++ code that creates the dll. It communicates through the tskit.dll which is an interface to EasyLanguage.

The first line of the C++ code must contain the following:

#import "C:\Program Files\TradeStation 8.1 (Build 3006)\Program\tskit.dll" no_namespace

After further reading of the TradeStation SDK documentation it appears that I only need the tskit.dll and not the two header files. To determine if tskit.dll is included int the standard TradeStation software would only require someone to search the program directory where TradeStation is installed and see if the tskit.dll is in one of the subdirectories.

Reply With Quote
 
(login for full post details)
  #5 (permalink)
Portland, OR
 
Experience: Intermediate
Platform: Sierra Chart
Trading: ES
 
Posts: 269 since Jan 2011
Thanks: 327 given, 180 received

tskit.dll - It's available with default install of TS - under program folder.

C:\Program Files (x86)\TradeStation 9.1\Program\tskit.dll

Reply With Quote
 
(login for full post details)
  #6 (permalink)
Germany
 
Experience: Advanced
Platform: TradeStation
Trading: Futures
 
Posts: 88 since May 2012
Thanks: 53 given, 93 received


johnsondel View Post
It communicates through the tskit.dll which is an interface to EasyLanguage.

This is optional. tskit.dll provides an interface for directly referencing TS data without explicitly going through EL. You can however use a DLL function in EL to send your TS data to the DLL like this:

DefineDLLFunc: "C:\data.DLL", int, "sendprice", double;
value1 = sendprice(close); // provides your DLL with the closing price of data1

So you can create your own DLL (that exports functions using the __stdcall calling convention) and it'll work. You don't necessarily have to use the tskit.dll to get data from TS.

Reply With Quote
 
(login for full post details)
  #7 (permalink)
Traverse City MI
 
 
Posts: 4 since Jan 2013
Thanks: 0 given, 0 received

Thanks for looking it up.

Also, I think that you need to reference tskit.dll if you need to call a C++ function contained in a custom dll from EasyLanguage. I need to look at the SDK documentation again.

D. Johnson

Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > tradestation SDK


Last Updated on January 20, 2013


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts