Dukascopy
 
 
Wiki JStore Search Login

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

    Submit JForex API function requests in this forum only.
    Off topics are strictly forbidden.

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

jar to jfx compiler for strategies and indicators
 Post subject: jar to jfx compiler for strategies and indicators Post rating: 0   New post Posted: Mon 24 Mar, 2014, 14:36 
User avatar

User rating: 0
Joined: Thu 13 Mar, 2014, 17:17
Posts: 13
Location: Hungary,
It would be nice to have a jforex jar to jfx compiler for strategies and indicators as well (not just for plugins..). As things stand now, it is a little awkward to register custom indicators and strategies written in JVM languages other than java..


 
 Post subject: Re: jar to jfx compiler for strategies and indicators Post rating: 0   New post Posted: Wed 26 Mar, 2014, 09:39 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Could you please provide a concrete case when that would be necessary?


 
 Post subject: Re: jar to jfx compiler for strategies and indicators Post rating: 0   New post Posted: Thu 29 May, 2014, 15:41 

User rating: 0
Joined: Fri 09 May, 2014, 09:05
Posts: 5
Location: Germany,
I write strategies in Scala and build and run them with sbt. Works fine so far, but how to import them into the JForex GUI to test them visually? The IClient.compileStrategy function only works for java and IClient.packPluginToJfx call only works for plugins. Therefore a generell jar to jfx compiler would be nice.


 
 Post subject: Re: jar to jfx compiler for strategies and indicators Post rating: 0   New post Posted: Fri 30 May, 2014, 14:44 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The request has been registered.


 
 Post subject: Re: jar to jfx compiler for strategies and indicators Post rating: 0   New post Posted: Sat 31 May, 2014, 17:42 

User rating: 0
Joined: Fri 09 May, 2014, 09:05
Posts: 5
Location: Germany,
Thanks! Just FYI, writing a wrapper class in the JForex GUI works as a workaround and I can build jfx files
...
import JIndicators.*;

@Library("jindicators_2.10.jar:scala-library-2.10.4.jar")
public class TestIndicator implements IIndicator {
   
    private _TestIndicator i;
   
    public TestIndicator() {   
        if (i == null) {   
            i = new _TestIndicator();       
        }
    }       

    public void onStart(IIndicatorContext context) {               
        i.onStart(context);
    }

    public IndicatorResult calculate(int startIndex, int endIndex) {
        return i.calculate(startIndex, endIndex);   
    }
    ...


 
 Post subject: Re: jar to jfx compiler for strategies and indicators Post rating: 0   New post Posted: Mon 30 Jun, 2014, 12:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Feature available with JForex-API 2.9.12.


 

Jump to:  

cron
  © 1998-2024 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