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

Strategy doesn't start on version 2.30
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=50543
Page 1 of 1

Author:  simonoviedo [ Mon 16 Dec, 2013, 17:04 ]
Post subject:  Strategy doesn't start on version 2.30

Hello Support,

My strategy doesn't start after last platform update 2.30 I get this message. It works on Demo but not Live. Can you check if it's a bug or the strategy?

15:42:08 java.lang.NullPointerException @ jforex.strategies.Persbands.onStart(Persbands.java:111)

Author:  API Support [ Mon 16 Dec, 2013, 17:06 ]
Post subject:  Re: Strategy doesn't start on version 2.30

Do you run the strategy remotely or on your local computer? If you can't provide the strategy here in the forum please send it to [email protected] with a link to this topic.

Author:  simonoviedo [ Mon 16 Dec, 2013, 23:42 ]
Post subject:  Re: Strategy doesn't start on version 2.30

Hello support, the strategy developer tells me that there is a bug on the last version (2.30) where the strategy doesn't start if there is an open position. They say the problem is the following function:

for(IOrder order : engine.getOrders()) {

if(!order.getComment().equals(this.getClass().getSimpleName())) {

return;

}

if(order.isLong()) {

longOrders.addOrder(new MyOrder(order));

} else {

shortOrders.addOrder(new MyOrder(order));

}

}

Author:  API Support [ Tue 17 Dec, 2013, 08:14 ]
Post subject:  Re: Strategy doesn't start on version 2.30

It does not suffice to detect where the problem is. Please send the entire strategy to [email protected] with a link to this topic.

Author:  simonoviedo [ Tue 17 Dec, 2013, 16:17 ]
Post subject:  Re: Strategy doesn't start on version 2.30

Hello support,

I already sent the entire strategy to [email protected]

  Page 1 of 1