| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Getting a Fixed Value Rom an Excel Sheet in Tradestation Strategy | ||
| |
|
| | #2 | ||
![]() | Re: Getting a Fixed Value Rom an Excel Sheet in Tradestation Strategy
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| | #3 | ||
![]() | Re: Getting a Fixed Value Rom an Excel Sheet in Tradestation Strategy The problem is that I dont have the extended path information in the code to begin with so I dont understand this error. Here is my simple excel code based on the demo: inputs: string WorkbookName("FuturesBigL ist.xls"), string WorksheetName("FeatureLis t"); var:bool WorksheetReady(false); var:bool XLStarted(false); XLStarted=ELXL_Initialize ; If XLStarted then begin WorksheetReady=ELXL_WithS heet(WorkbookName,WorkShe etName); vars: string Instrument(GetSymbolName) ; vars: string ExcelSymbol(""); vars: int GetSheet(1); vars: int getrow(2); vars: int getcolum(1); vars: int RowCounter(2); Vars:Margin$(1); vars:double oNumvar(0); Vars:string oStringVal(""); vars:bool getrtn(false); If WorksheetReady then begin For GetRow =2 to 100 begin RowCounter=getrow; getrtn= ELXL_GetCellStringRC(Getr ow,1,oStringVal); ExcelSymbol= oStringVal; print("ExcelSymbol", Excelsymbol); If ExcelSymbol=Instrument then begin getrtn= ElXL_GetCellNumberRC(Getr ow,12,oNumvar); Margin$=oNumvar; print("GetRow",Getrow); print("margin$",margin$); end; end; end; end; | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |