NexusFi: Find Your Edge


Home Menu

 





The problem about Matlab & MultiCharts


Discussion in MultiCharts

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




 
Search this Thread
  #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?
Bookmap Global Plus Lifetime + Lifetime Addons For Sale
Platforms and Indicators
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
Iran Fired a Missile at Israel Last Night. The $8M June …
Prediction Markets & Event Contracts
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
Peace Deal Forward Curve: May 22%, June 51%, December 81 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
2 thanks
CME Expands 24/7 Trading to WTI Crude Oil and Gold -- We …
1 thanks
30 Sessions
1 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


© 2026 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 - Downloads - Top
no new posts