Dukascopy
 
 
Wiki JStore Search Login

DDSJFX-1955 Class not accepted
 Post subject: DDSJFX-1955 Class not accepted Post rating: 0   New post Posted: Fri 21 Mar, 2014, 20:31 
User avatar

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

Trying to do some testing with the new platform.

The following code can be compiled, but upon start, I got Class not accepted message.
package jforex;

import java.util.*;

import com.dukascopy.api.*;
import com.dukascopy.api.feed.IFeedDescriptor;
import com.dukascopy.api.feed.IFeedListener;
import com.dukascopy.api.feed.IRenkoBar;
import com.dukascopy.api.feed.IRenkoBarFeedListener;
import com.dukascopy.api.feed.util.RenkoFeedDescriptor;

public class RenkoTest implements IStrategy, IFeedListener {

    @Configurable("")
    public IFeedDescriptor renkoFeedDescriptor = new RenkoFeedDescriptor(Instrument.EURUSD, PriceRange.valueOf(10), OfferSide.ASK);

    private IConsole console;

    public void onStart(IContext context) throws JFException {
        this.console = context.getConsole();
        context.setSubscribedInstruments(java.util.Collections.singleton(renkoFeedDescriptor.getInstrument()), true);
        context.subscribeToFeed(renkoFeedDescriptor, this);
    }

    @Override
    public void onFeedData(IFeedDescriptor feedDescriptor, ITimedData feedData) {
        console.getOut().println(feedData);
    }

    public void onAccount(IAccount account) throws JFException {}

    public void onMessage(IMessage message) throws JFException {}

    public void onStop() throws JFException {}

    public void onTick(Instrument instrument, ITick tick) throws JFException {}

    public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {}
}

Could you help me out.

Thanks!


 
 Post subject: Re: DDSJFX-1955 Class not accepted Post rating: 0   New post Posted: Mon 24 Mar, 2014, 08:54 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1049
Location: Geneva, Switzerland
We are taking care of this problem.


 
 Post subject: Re: DDSJFX-1955 Class not accepted Post rating: 0   New post Posted: Wed 02 Apr, 2014, 20:50 
User avatar

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

Any news about this issue?


 
 Post subject: Re: DDSJFX-1955 Class not accepted Post rating: 0   New post Posted: Thu 03 Apr, 2014, 15:17 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1049
Location: Geneva, Switzerland
Done, waiting for the next release. Version 4.07 coming next week.


 
 Post subject: Re: DDSJFX-1955 Class not accepted Post rating: 0   New post Posted: Sun 27 Apr, 2014, 22:14 
User avatar

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

Any update on the case? I am just wondering what might be the situation, as the next release still not online...

thanks and regards


 
 Post subject: Re: DDSJFX-1955 Class not accepted Post rating: 0   New post Posted: Wed 30 Apr, 2014, 16:18 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1049
Location: Geneva, Switzerland
Please test it on version 4.07


 

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