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?
Post-Summit Market Verdict: ES -1%, NQ -1.5%, 10-Year Yi …
Traders Hideout
S&P 500 Holds the Line: No Fast Track for SpaceX, Op …
Stocks and ETFs
GDP Day: The First Economic Reckoning -- Pahlavi at 6.55 …
Prediction Markets & Event Contracts
April FOMC Minutes: Most Divided Fed Since 1992 -- Many …
Traders Hideout
Netherlands & Germany Surge as World Cup Field Narro …
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