Excel Link Dll: Function Description
Description of function tslink.dll
Function "TS_StartExcel"
Initializes and opens Excel file
defineDLLFunc: "tslink.dll", int, "TS_StartExcel",LPSTR, LPSTR;
- Sets name and location of used Excel file
- Sets name of Excel file.
Function "TS_SetValue"
Sets value from TradeStation in Excel
defineDLLFunc: "tslink.dll", int, "TS_SetValue",float,int,int,int,int;
- Number of used sheet in Excel beginning from 1 (sheet1 = 1, etc.).
- Value that needs to be sent to Excel.
- Number of Row in which value from TradeStation will be sent.
- Number of Colum in which value from TradeStation will be sent.
- Delay in miliseconds after value is sent to Excel.
Function "TS_GetValue"
Gets value from Excel and sends it to TradeStation
defineDLLFunc: "tslink.dll", float, "TS_GetValue",int,int,int,int;
- Number of used sheet in Excel beginning from 1 (sheet1 = 1, etc.).
- Number of Row in which the needed value is located.
- Number of Column in which the needed value is located.
- Delay in miliseconds after value is got from Excel.
Function " TS_SetString"
Sets the Row from TradeStation in Excel
defineDLLFunc: "tslink.dll", int, "TS_SetString",lpstr,int,int,int,int;
- Value that needs to be sent to Excel.
- Number of Sheet used in Excel beginning from 1 (sheet1 = 1, etc.).
- Number of Row in which the value from TradeStation will be sent.
- Number of Column in which the value from TradeStation will be sent.
- Delay in miliseconds after value is send to Excel.
Function " TS_GetString"
Gets the text from Excel and sends it to TradeStation
defineDLLFunc: "tslink.dll", int, "TS_GetString",int,int,int,int;
- Number of used sheet in Excel beginning from 1 (sheet1 = 1, etc.).
- Number of Row in which the needed value is located.
- Number of Column in which the neede value is located.
- Delay in miliseconds before value is got from Excel.
|
Important !
There are limitations to Demo version of tslink.dll, you can send and get values using the following sheets and cells:
- Sheet № 1 in Excel
- Cell R1C2 for sending data like String (Text) in Excel
- Cell R2C2 for getting data like String (Text) in Excel and sending it to TradeStation.
- Cell R3C2 for sending data like Int in Excel
- Cell R4C2 for getting data like Int from Excel and sending it to TradeStation.
Other parameters of Demo version don’t differ from working version and function in full. |
|