Register Login
Forums    February 9, 2012
TradersStudio Forums
Need Help Please Calling Excel Function with TS Arrays
Last Post 10-14-2008 10:49 AM by mur ang. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Scott McCormick
New Member
New Member
Posts:2

--
10-14-2008 10:18 AM

    Hi,

    I need some help, please, calling Excel functions using data already in TradersStudio arrays.  I think I have seen example of passing arrays/ranges back and forth between Excel and TradersStudio (ie if you know the exact start and end cells on an Excel worksheet)

    However, I am wondering if you can call an Excel function (say LINEST for example) using data already in TradersStudio, and then explicitly pass that result back into TradersStudio.  Can you please provide an example of that please?  In Visual Basic, I think you can do something like the following:

    Set myRange = Worksheets("Sheet1").Range("A1:C10")
    answer = Application.WorksheetFunction.Min(myRange)

    So how can I explicitly call an excel function from within TradersStudio, as the 2nd line does from within Visual Basic?  Thanks!

    Regards,

    Scott

     

     

    mur ang
    Advanced Member
    Advanced Member
    Posts:525

    --
    10-14-2008 10:49 AM

    XLGetRangeValues(Worksheet, Row1, Col1, Row2, Col2) As Variant

    This function will return the range value to you. You need to process the data in the DLL directly for your calculations. We did not add a way of calling Excel Functions. We can call Macros from Excel.

    You are not authorized to post a reply.


     TradersStudio, Inc. ® Copyright 2004-2012 All Rights Reserved   Terms Of Use  Privacy Statement