{******************************************************************* Name: TS.Link.ReadData Analysis Type: Indicator Description : Example Indicator of geting data from Excel from different cells for TS Link DLL Used: tslink.dll Provided By : Trade Smart Research (c) Copyright 2001 - 2005 www.tsresearchgroup.com ********************************************************************} Inputs: GetSheet(1), GetColum(2), ExcelFileName("TSLinkExampleReadData.xls"), ExcelFilePath("C:\Program Files\TradeSmart\TS Link\TSLinkExampleReadData.xls"); Var: StartValue(0),GetValue(0), GetRow(0); {Declaration functions} defineDLLFunc: "tslink.dll", int, "TS_StartExcel",LPSTR,LPSTR; {initalisation excel file 1 - Short BookName, 2 - full path bookname} defineDLLFunc: "tslink.dll", float, "TS_GetValue",int,int,int,int; {sheet number,row, column, spleep milisekonds} if currentbar = 1 then begin StartValue = TS_StartExcel(ExcelFileName,ExcelFilePath); end; GetRow = GetRow[1] +1; {Call Dll and receive to it of the value} GetValue = TS_GetValue(GetSheet,GetRow,GetColum,0); Plot1(GetValue, "Value"); {***** Copyright (c) 2001-2005 Trade Smart Research, Ltd. All rights reserved. www.tsresearchgroup.com ***** ***** Trade Smart Research reserves the right to modify or overwrite this analysis technique with each release. *****}
|