NexusFi: Find Your Edge


Home Menu

 





The problem about Matlab & MultiCharts


Discussion in MultiCharts

Updated
    1. trending_up 3,010 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

The problem about Matlab & MultiCharts

  #1 (permalink)
yonghu123
Gongren Road 55#,Tielin
 
Posts: 3 since Mar 2012
Thanks Given: 1
Thanks Received: 0

hello:

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

how to interfacing Maltab with MultiCharts?

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


ps:EasyLanguage and Custom DLLs — I have read this articel,but may not understand fully.

How to write codes in PowerLanguage?

thanks.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (permalink)
Bimi
London
 
Posts: 118 since Mar 2010
Thanks Given: 42
Thanks Received: 58


yonghu123 View Post
hello:

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

how to interfacing Maltab with MultiCharts?

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


ps:EasyLanguage and Custom DLLs — I have read this articel,but may not understand fully.

How to write codes in PowerLanguage?

thanks.

What were you looking for when you read the article?

Read your error message: Invalid number of parameters

Go to the manual and look up the number of parameters required. Problem solved.

Reply With Quote
  #3 (permalink)
yonghu123
Gongren Road 55#,Tielin
 
Posts: 3 since Mar 2012
Thanks Given: 1
Thanks Received: 0



Bimi View Post
What were you looking for when you read the article?

Read your error message: Invalid number of parameters

Go to the manual and look up the number of parameters required. Problem solved.

Thank you for your replies.

Syntax on the book:
DefineDLLFunc: “DLLNAME.DLL”, Return Type, “FunctionName”,
Parameters ;

According to the definition:“Parameters is the list of parameters expected by the function."

Only price timeseries in Dfa function.How should I do ?

Reply With Quote
  #4 (permalink)
Bimi
London
 
Posts: 118 since Mar 2010
Thanks Given: 42
Thanks Received: 58


yonghu123 View Post
Thank you for your replies.

Syntax on the book:
DefineDLLFunc: “DLLNAME.DLL”, Return Type, “FunctionName”,
Parameters ;

According to the definition:“Parameters is the list of parameters expected by the function."

Only price timeseries in Dfa function.How should I do ?

The dfa is not suitable for MultiCharts.

I thought you said you wrote the DLL? You should know.

Reply With Quote




Last Updated on November 4, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts