Dukascopy
 
 
Wiki JStore Search Login

Just restarted with jForex
 Post subject: Just restarted with jForex Post rating: 0   New post Posted: Mon 27 Oct, 2014, 17:15 
User avatar

User rating: 0
Joined: Fri 17 Jan, 2014, 18:13
Posts: 72
Location: NetherlandsNetherlands
Is there a good howto on building indicators with jForex? A manual or anything like that?

The example found on the wiki, compiled with the error ...

16:24:29 The public type Indicator must be defined in its own file


... so the first attempt failed.

I am an advanced MQ4 developer, but never in my life worked with Java.

Thanks


 
The Best Answer  Post subject: Re: Just restarted with jForex Post rating: 1   New post Posted: Tue 28 Oct, 2014, 12:46 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Hi,

The wiki, and this very forum is the only place for information. There are no manuals.

About the 1st error:
The filename of the the indicator must be the same as the class name. For example:
If you want to create an indicator called MySuperIndicator,
you have to use the filename MySuperIndicator.java,
and you have to use the classname MySuperIndicator as well
public class MySuperIndicator implements IIndicator {


I suggest to setup a project in Eclipse. That will help you a lot:
https://www.dukascopy.com/wiki/#Use_in_Eclipse

Success!


 
 Post subject: Re: Just restarted with jForex Post rating: 0   New post Posted: Tue 28 Oct, 2014, 18:56 
User avatar

User rating: 0
Joined: Fri 17 Jan, 2014, 18:13
Posts: 72
Location: NetherlandsNetherlands
Thanks,

I'll give it a go.


 

Jump to:  

  © 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