TS Research Group


 по русски | in english  

CompanySoftware ProductsServicesManaged FundsPublicationsContactsSearchSupport Forum

   Overview   Research   Download   Order





eSignal Solutions:
· Wavelet Transform for eSignal

Rocket Science Trading Tools:
· Genetic Optimizer for TradeStation

Portfolio Money Management:
· Real Time Portfolio Analyzer

Research:
Volatility Break

Percent Risk

Optimization of strategy inputs with random exits.


System Trading Tools:
· Wavelet Transform
· TS Link Dll

Research:
Using TS Link. Example of optimal F calculation in TradeStation using Excel.


Automatic System Trading:
· TS Automatic Trader DDE Version

RealTime tools:
· OnDemand Server
· Meta Server RT

Historical tools:
· HistoryCentre for OMZ
· HistoryCentre for XPO
· QLoader for QCharts

Utilities:
. Quotes Genereator DDE Version

Support:
. How to Buy
. Customer support
· Online help
. Download demo
. Ask here
. F.A.Q.




TS MATLAB Link Dll for TradeStation Online Help

|TS MATLAB Link Dll| Ask here| F.A.Q.| Forum discuss|

MATLAB® Documentations:

MATLAB Documentation
MATLAB Documentation Mathematics Examples
MATLAB Documentation Programming and Data Types Examples
MATLAB Documentation Graphics Examples
MATLAB Documentation 3-D Visualization Examples
MATLAB Documentation Creating Graphical User Interfaces Examples
MATLAB Documentation External Interfaces Examples
MATLAB Documentation Development Environment Examples





Function and Indicators EasyLanguage code:


Function "TS.MATLAB.LINK"

***************************************************************************************
Name: TS.MATLAB.LINK
Analysis Type: Function
Used: TSMATLABLINK.dll
Description: Using MATLAB The MathWorks, Inc (http://www.mathworks.com/)
Provided By: Trade Smart Research (c) Copyright 2001 - 2004 www.tsresearchgroup.com
Return of value: Float (Numeric)
***********************************************************************}


Input: Transmit(StringSimple);

defineDLLFunc: "tsmatlablink.dll", float, "TS_ExecMatlabCmd",lpstr;

TS.MATLAB.LINK = TS_ExecMatlabCmd(Transmit);

 

{***** Copyright (c) 2001-2004 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. *****}





Example Indicator: "TS.MATLAB.MEAN"

{***************************************************************************************
Name: TS.MATLAB.MEAN
Analysis Type: Indicator
Used: TSMATLABLINK.dll
Description: Calculated Mean using MATLAB The MathWorks, Inc (http://www.mathworks.com/)
Provided By: Trade Smart Research (c) Copyright 2001 - 2004 www.tsresearchgroup.com
***********************************************************************}

Input: Length(21);
Vars: MA(0);
                     {create array A and add value}
if currentbar = 1 then begin
    Value1 = TS.MATLAB.LINK("A = ["+ NumToStr(C,4)+" ]");
end else begin
                      {add next value to array}
        Value1=TS.MATLAB.LINK("A=[A "+ NumToStr(C,4) +" ]");
        if currentbar > Length then
                      {if array > our periods (length) then delete first element from array}
          
Value1=TS.MATLAB.LINK("A(1)=[]");
                       {calculating mean}
           MA=TS.MATLAB.LINK("mean(A)");
end;
Plot1(MA, "Mean");

 

{***** Copyright (c) 2001-2004 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. *****}



Important notice!
Values of TradeStation need to be converted to string, for example using EasyLanguage function «NumToStr»», right before exporting to MATLAB.



|TS MATLAB Link Dll| Ask here| F.A.Q.| Forum discuss|



 Home | Contacts | Site Map | Disclaimer | Privacy Statement 
Copyright © TS Research Group 2002, e-mail: info@tsresearchgroup.com.  Developed by webdesign.tria.lv