NexusFi: Find Your Edge


Home Menu

 





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 Quick Summary with 1 posts (0 thanks)
    4. looks_4 ejtrader with 1 posts (0 thanks)
    1. trending_up 5,653 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread

tradestation SDK

  #1 (permalink)
johnsondel
Traverse City MI
 
Posts: 4 since Jan 2013
Thanks Given: 0
Thanks Received: 0

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 NexusFi?
Deepmoney LLM
Elite Quantitative GenAI/LLM
Exit Strategy
NinjaTrader
Build trailing stop for micro index(s)
Psychology and Money Management
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
  #3 (permalink)
 Outlier 
Germany
 
Experience: Advanced
Platform: TradeStation
Trading: Futures
Posts: 88 since May 2012
Thanks Given: 53
Thanks Received: 93


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
  #4 (permalink)
johnsondel
Traverse City MI
 
Posts: 4 since Jan 2013
Thanks Given: 0
Thanks Received: 0

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
  #5 (permalink)
 ejtrader 
Portland, OR
 
Experience: Intermediate
Platform: Sierra Chart
Trading: ES
Posts: 269 since Jan 2011
Thanks Given: 327
Thanks Received: 180

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
  #6 (permalink)
 Outlier 
Germany
 
Experience: Advanced
Platform: TradeStation
Trading: Futures
Posts: 88 since May 2012
Thanks Given: 53
Thanks Received: 93


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
  #7 (permalink)
johnsondel
Traverse City MI
 
Posts: 4 since Jan 2013
Thanks Given: 0
Thanks Received: 0

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




Last Updated on January 20, 2013


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts