Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

DDSJFX-1955 Class not accepted
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=200&t=50951
Page 1 of 1

Author:  tcsabina [ Fri 21 Mar, 2014, 20:31 ]
Post subject:  DDSJFX-1955 Class not accepted

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!

Author:  Platform Support [ Mon 24 Mar, 2014, 08:54 ]
Post subject:  Re: DDSJFX-1955 Class not accepted

We are taking care of this problem.

Author:  tcsabina [ Wed 02 Apr, 2014, 20:50 ]
Post subject:  Re: DDSJFX-1955 Class not accepted

Dear Support,

Any news about this issue?

Author:  Platform Support [ Thu 03 Apr, 2014, 15:17 ]
Post subject:  Re: DDSJFX-1955 Class not accepted

Done, waiting for the next release. Version 4.07 coming next week.

Author:  tcsabina [ Sun 27 Apr, 2014, 22:14 ]
Post subject:  Re: DDSJFX-1955 Class not accepted

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

Author:  Platform Support [ Wed 30 Apr, 2014, 16:18 ]
Post subject:  Re: DDSJFX-1955 Class not accepted

Please test it on version 4.07

  Page 1 of 1