I have the same problem but I could not figure out where to change those security settings.
I have the following:
public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {
// Check instrument
if(instrument != Instrument.EURUSD)
return;
// Check if previous close is higher or not
IBar prevBar = history.getBar(Instrument.EURUSD, Period.ONE_MIN, OfferSide.BID, 1);
if(bidBar.getClose()<prevBar.getClose()){
console.getOut().println("Bear");
}
else{
console.getOut().println("Bull");
}
}
When this method gets called, the following error is printed in the Messages tab:
16:43:40 java.lang.SecurityException: class "com.dukascopy.api.impl.j" does not match trust level of other classes in the same package @ MyInitialStrategy.onBar(MyInitialStrategy.java:45)
Line 45 is mapped here to Line 6:
IBar prevBar = history.getBar(Instrument.EURUSD, Period.ONE_MIN, OfferSide.BID, 1);
Why is this message raised and what can I do about it?
Please help.
Regards,
Juergen