NexusFi: Find Your Edge


Home Menu

 





The problem about Matlab & MultiCharts


Discussion in MultiCharts

Updated
    1. trending_up 3,560 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?
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
April CPI Preview: +3.7% YoY Expected at 8:30 AM ET -- C …
Traders Hideout
Khamenei Vetoes Uranium Transfer as Peace Odds Surge to …
Prediction Markets & Event Contracts
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
The Pivot Point 113.6³ — Navigating the Prediction of …
26 thanks
Sober Journey With S&P
17 thanks
The Confluence Meter: A Multi-Layered Signal Framework B …
11 thanks
NT8 color choices
10 thanks
Volume Indicators
7 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