Please figured out how to interfacing Maltab with MultiChart

Questions about MultiCharts and user contributed studies.
kkksex
Posts: 2
Joined: 01 Nov 2012

Please figured out how to interfacing Maltab with MultiChart

Postby kkksex » 01 Nov 2012

I have wroten a simple function called indicator Dfa in Matlab .

for example: result = Dfa(timeseries) ,

I want to use the indicator Dfa on MultiCharts,

Has anybody figured out how to interfacing Maltab with MultiCharts?

ps:I used MCR (MATLAB Compiler Runtime) generate Dfa.dll.

DefineDLLFunc: "D:\FILES\Dfa.dll", float, "Dfa";

inputs:

Price(Close),
Length( 200 );

variables:

var1( 0 ),

var1 = Dfa(Price, Length) ;

------ Compiled with error(s): ------
Invalid number of parameters. 0 parameter(s) expected

How to write codes in PowerLanguage?

thanks.

User avatar
TJ
Posts: 7158
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 988 times
Been thanked: 2042 times

Re: Please figured out how to interfacing Maltab with MultiC

Postby TJ » 01 Nov 2012

kkksex wrote:I have wroten a simple function called indicator Dfa in Matlab .

for example: result = Dfa(timeseries) ,

I want to use the indicator Dfa on MultiCharts,

Has anybody figured out how to interfacing Maltab with MultiCharts?

ps:I used MCR (MATLAB Compiler Runtime) generate Dfa.dll.

DefineDLLFunc: "D:\FILES\Dfa.dll", float, "Dfa";

inputs:

Price(Close),
Length( 200 );

variables:

var1( 0 ),

var1 = Dfa(Price, Length) ;

------ Compiled with error(s): ------
Invalid number of parameters. 0 parameter(s) expected

How to write codes in PowerLanguage?

thanks.



see:

EasyLanguage Reference Guide
CHAPTER 4, EasyLanguage and Custom DLLs
Defining a DLL Function .... Pg. 170

kkksex
Posts: 2
Joined: 01 Nov 2012

Re: Please figured out how to interfacing Maltab with MultiC

Postby kkksex » 01 Nov 2012

TJ wrote:

see:

EasyLanguage Reference Guide
CHAPTER 4, EasyLanguage and Custom DLLs
Defining a DLL Function .... Pg. 170


I have read this articel,but did not understand fully.

Would you give me to explain it combined with the above Dfa example?

thank you very much.


Return to “MultiCharts”