Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

integrating JForex with MATLAB
 Post subject: integrating JForex with MATLAB Post rating: 0   New post Posted: Mon 19 Apr, 2010, 14:32 

User rating: 0
Joined: Mon 19 Apr, 2010, 13:51
Posts: 6
Hello,

I do have a difficulty to integrate JForex platform with Matlab. My understanding is there are several ways how to do it.
I would like to register external JAR package (MATLAB Compiler Runtime - MCR) into my strategy

...
import com.mathworks.toolbox.javabuilder.* ;
@Library("javabuilder.jar")
...


but I do get an error - javabuilder.jar cannot be resolved.
(Same code works fine in Eclipse, since javabuilder.jar is on my CLASSPATH.)

Any suggestion how to debug or where could be the problem?
Is there any other possibility how to integrate?

Thanks&regards,
J.


 
 Post subject: Re: integrating JForex with MATLAB Post rating: 0   New post Posted: Tue 20 Apr, 2010, 08:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello,
please consider this https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=7&t=225&p=3666&hilit=send+mail#p3666


 
 Post subject: Re: integrating JForex with MATLAB Post rating: 0   New post Posted: Tue 20 Apr, 2010, 13:13 

User rating: 0
Joined: Sat 08 Mar, 2008, 03:10
Posts: 18
I tried to integrate JForex with Matlab via a JBuilder jar a couple of years ago, and I couldn't make it work at all. The functions would always return with an error. Eventually I turned to an alternative: building a mex file from Matlab and then calling that from JNI which works well in JForex. It's a very tricky process to get right though, so if you ever try it ask here for some more hints.


 
 Post subject: Re: integrating JForex with MATLAB Post rating: 0   New post Posted: Tue 20 Apr, 2010, 13:32 

User rating: 0
Joined: Mon 19 Apr, 2010, 13:51
Posts: 6
The "SendMail" JAR (link above) works fine in my demo environment and this is exactly the approach I tried to immitate (import+annotation).
It seems JForex cannot resolve some classes/objects defined in MATLAB runtime package... this is strange.


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com