Dukascopy
 
 
Wiki JStore Search Login

Strategy running but not executing orders
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Tue 16 Jul, 2013, 10:27 
User avatar

User rating: 0
Joined: Mon 30 Jan, 2012, 21:50
Posts: 32
Location: Czech Republic, Staré Buky
And what with my balance?


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Tue 16 Jul, 2013, 10:41 
User avatar

User rating: 0
Joined: Fri 19 Apr, 2013, 17:31
Posts: 16
Location: RomaniaRomania
Dukascopy please check out Fireman, rank number 1 strategy as well. I'm sure there must be some problems with his strategy as well. He is having multiple orders duplicated, I'm sure there must be a bug somewhere. See picture attached, this is just an example if you go through his blog you'll see he has many orders duplicated.

Image


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Tue 16 Jul, 2013, 11:40 
User avatar

User rating: 2
Joined: Thu 19 May, 2011, 09:37
Posts: 86
Location: India, Chennai
yes it worked for sometime and again got stopped.
The new development is "it says strategy stopped task 77841
INFO
16.07.2013 09:26:26 Stopping "Contest2013" strategy at 2013-07-16 09:26:26.834 GMT on the remote server
INFO
16.07.2013 09:26:26 Strategy is terminated by Task # 77841
INFO
16.07.2013 08:15:01 Order 206364173 rejected

but it says "Running" in the contest page.
thank you in advance.


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Tue 16 Jul, 2013, 14:28 
User avatar

User rating: 8
Joined: Wed 21 Apr, 2010, 10:42
Posts: 1167
piter44 wrote:
Same here.

During latests test I noticed that when I used contest.getEquity() function to calculate size of an order then strategy did not opened orders and when I changed it to fix amount then everyting was ok.


2013-07-16 10:09:44,829 Strategy "gonnagoup" Strategy ID: is started at 2013-07-16 10:09:44.818 GMT on the remote server with no parameters
2013-07-16 11:00:08,466 java.lang.NullPointerException @ jforex.strategies.gonnagoup.Amount(gonnagoup.java:156)
2013-07-16 11:00:08,484 null:
2013-07-16 11:00:08,485 java.lang.NullPointerException
2013-07-16 11:00:08,486 at jforex.strategies.gonnagoup.Amount(gonnagoup.java:156)
2013-07-16 11:00:08,487 at jforex.strategies.gonnagoup.onBar(gonnagoup.java:121)
2013-07-16 11:00:08,489 at com.dukascopy.api.impl.execution.TaskOnBar.postData(TaskOnBar.java:84)
2013-07-16 11:00:08,491 at com.dukascopy.api.impl.execution.TaskOnBar.call(TaskOnBar.java:62)
2013-07-16 11:00:08,492 at com.dukascopy.api.impl.execution.TaskOnBar.call(TaskOnBar.java:22)
2013-07-16 11:00:08,494 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
2013-07-16 11:00:08,495 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
2013-07-16 11:00:08,497 at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.runTask(ScienceThreadPoolExecutor.java:904)
2013-07-16 11:00:08,498 at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.run(ScienceThreadPoolExecutor.java:926)
2013-07-16 11:00:08,500 at java.lang.Thread.run(Thread.java:619)
2013-07-16 11:00:08,534 java.lang.NullPointerException @ jforex.strategies.gonnagoup.Amount(gonnagoup.java:156)

This is the error we get from your strategy. Please kindly check the code. This is not related to a problem of Remote Server.


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Tue 16 Jul, 2013, 14:31 
User avatar

User rating: 8
Joined: Wed 21 Apr, 2010, 10:42
Posts: 1167
sudink wrote:
Hi,

I had similar problems with my strategy. It was not closing orders at fixed TP of 80 pips and SL of 20 pips. Instead it closed one trade at -243 pips and wiped out most of the equity. After this trade, the strategy is running but no new trades are being executed.

Regards.


2013-07-16 13:26:22,095 Take Profit price SET
2013-07-16 13:26:22,096 Order REJECTED: STOP LOSS BUY GBP/USD @MKT IF ASK => 1.5108455 - Position #52810275, REASON: STOP LOSS Invalid price format - please use increments of 0.1 pip.
2013-07-16 13:26:24,105 Stop Loss price SET
2013-07-16 13:26:30,917 Order REJECTED: TAKE PROFIT BUY GBP/USD @MKT IF ASK <= 1.5008455 - Position #52810275, REASON: TAKE PROFIT Invalid price format - please use increments of 0.1 pip.
2013-07-16 13:26:32,925 Take Profit price SET
2013-07-16 13:26:32,926 Order REJECTED: STOP LOSS BUY GBP/USD @MKT IF ASK => 1.5108455 - Position #52810275, REASON: STOP LOSS Invalid price format - please use increments of 0.1 pip.


This is the error message of your strategy. Looks like you're using a wrong format for take profit. Please fix the issue asap. And once again, this is not related to Remote Server.


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Tue 16 Jul, 2013, 14:35 
User avatar

User rating: 8
Joined: Wed 21 Apr, 2010, 10:42
Posts: 1167
merlin wrote:
The same problem. My balance dropped to -5 mio and no executed order for it.



2013-07-16 10:09:48,330 Strategy <Trend.java> is terminated by Dukascopy due to account state is DISABLED
2013-07-16 10:09:52,778 Strategy <Trend.java> is terminated by Dukascopy due to account state is DISABLED
2013-07-16 10:10:01,235 Strategy <Trend.java> is terminated by Failed to connect because of authorization failure, most likely strategy is already stopped
2013-07-16 10:10:02,451 Strategy <Trend.java> is terminated by Failed to connect because of authorization failure, most likely strategy is already stopped

Your account is blocked now due to Margin Cut. There is no more enough margin to trade.

We can only advise you to try once again next month. And perhaps with a better strategy! ;)


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Tue 16 Jul, 2013, 14:42 
User avatar

User rating: 8
Joined: Wed 21 Apr, 2010, 10:42
Posts: 1167
Daytrader21 wrote:
Dukascopy please check out Fireman, rank number 1 strategy as well. I'm sure there must be some problems with his strategy as well. He is having multiple orders duplicated, I'm sure there must be a bug somewhere. See picture attached, this is just an example if you go through his blog you'll see he has many orders duplicated.

Image


fireman currently has a position opened with TP and SL set. So, the strategy will no open any new orders due to limitation of order amounts. Only one position is allowed to be opened!

Btw, the coding of the strategy is really awful. The name of methods are not provided in english and no comments are provided for this strategy. If fireman will win the contestl, we might decide to decrease bonus points because of bad JAVA coding practices :? :roll:


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Tue 16 Jul, 2013, 14:43 
User avatar

User rating: 8
Joined: Wed 21 Apr, 2010, 10:42
Posts: 1167
Victor wrote:
yes it worked for sometime and again got stopped.
The new development is "it says strategy stopped task 77841
INFO
16.07.2013 09:26:26 Stopping "Contest2013" strategy at 2013-07-16 09:26:26.834 GMT on the remote server
INFO
16.07.2013 09:26:26 Strategy is terminated by Task # 77841
INFO
16.07.2013 08:15:01 Order 206364173 rejected

but it says "Running" in the contest page.
thank you in advance.



I think you shouldn't complain. Your strategy works fine!!

5.5 hours ago
BUY 1.000M EUR/USD @ 1.30857, SL 1.30655 (20 pips),TP 1.31055 (20 pips)


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Tue 16 Jul, 2013, 19:18 
User avatar

User rating: 4
Joined: Wed 22 Jun, 2011, 00:10
Posts: 67
Location: United KingdomUnited Kingdom
For the duplicated orders, it happened to me before if instead of closing your trade you put a stop loss that automatically close the order it is going to create duplicate in the log,


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Tue 16 Jul, 2013, 20:06 
User avatar

User rating: 0
Joined: Mon 30 Jan, 2012, 21:50
Posts: 32
Location: Czech Republic, Staré Buky
I ´am waiting for restoring of accnt balance and ability to restart strategy.


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Tue 16 Jul, 2013, 20:12 
User avatar

User rating: 0
Joined: Mon 30 Jan, 2012, 21:50
Posts: 32
Location: Czech Republic, Staré Buky
Contest Support wrote:
merlin wrote:
The same problem. My balance dropped to -5 mio and no executed order for it.



2013-07-16 10:09:48,330 Strategy <Trend.java> is terminated by Dukascopy due to account state is DISABLED
2013-07-16 10:09:52,778 Strategy <Trend.java> is terminated by Dukascopy due to account state is DISABLED
2013-07-16 10:10:01,235 Strategy <Trend.java> is terminated by Failed to connect because of authorization failure, most likely strategy is already stopped
2013-07-16 10:10:02,451 Strategy <Trend.java> is terminated by Failed to connect because of authorization failure, most likely strategy is already stopped

Your account is blocked now due to Margin Cut. There is no more enough margin to trade.

We can only advise you to try once again next month. And perhaps with a better strategy! ;)



Please explain me how Last closed green order +5 pips can drop balance from $+143k to $-5mio.


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Tue 16 Jul, 2013, 20:50 
User avatar

User rating: 0
Joined: Wed 01 May, 2013, 09:18
Posts: 25
Location: Poland, Tuskownia
You are not alone Merlin. I see that Kupidon has the same problem as you. Besides erroneously displayed "Maximum Sum of Consecutive losses" in a few cases, for example in jyjy, fireman, Jean1, Daytrader21 and probably a few more.
Sorry to say but the contest is unlikely to support professional at what he does, or had poor day and did not want to go into the details of problems. I hope that this will change.
Good luck to all. ;)


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Wed 17 Jul, 2013, 05:21 
User avatar

User rating: 2
Joined: Thu 19 May, 2011, 09:37
Posts: 86
Location: India, Chennai
Contest Support wrote:
Victor wrote:
yes it worked for sometime and again got stopped.
The new development is "it says strategy stopped task 77841
INFO
16.07.2013 09:26:26 Stopping "Contest2013" strategy at 2013-07-16 09:26:26.834 GMT on the remote server
INFO
16.07.2013 09:26:26 Strategy is terminated by Task # 77841
INFO
16.07.2013 08:15:01 Order 206364173 rejected

but it says "Running" in the contest page.
thank you in advance.



I think you shouldn't complain. Your strategy works fine!!

5.5 hours ago
BUY 1.000M EUR/USD @ 1.30857, SL 1.30655 (20 pips),TP 1.31055 (20 pips)

Thank you support for the Enlightenment. But the strat is not working, still.


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Wed 17 Jul, 2013, 07:53 
User avatar

User rating: 0
Joined: Mon 30 Jan, 2012, 21:50
Posts: 32
Location: Czech Republic, Staré Buky
Support, thanks for balance back.
Now, I ´m not able restart strategy. Pls help


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Wed 17 Jul, 2013, 08:36 
User avatar

User rating: 1
Joined: Mon 03 Sep, 2012, 03:36
Posts: 8
Location: New ZealandNew Zealand
same problem. my strategy only made one order and stopped. Pls check and restart it. tks.


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Wed 17 Jul, 2013, 11:22 
User avatar

User rating: 1
Joined: Tue 26 Feb, 2013, 08:36
Posts: 20
Location: Poland, Warsaw
Contest Support wrote:
piter44 wrote:
Same here.

During latests test I noticed that when I used contest.getEquity() function to calculate size of an order then strategy did not opened orders and when I changed it to fix amount then everyting was ok.


2013-07-16 10:09:44,829 Strategy "gonnagoup" Strategy ID: is started at 2013-07-16 10:09:44.818 GMT on the remote server with no parameters
2013-07-16 11:00:08,466 java.lang.NullPointerException @ jforex.strategies.gonnagoup.Amount(gonnagoup.java:156)
2013-07-16 11:00:08,484 null:
2013-07-16 11:00:08,485 java.lang.NullPointerException
2013-07-16 11:00:08,486 at jforex.strategies.gonnagoup.Amount(gonnagoup.java:156)
2013-07-16 11:00:08,487 at jforex.strategies.gonnagoup.onBar(gonnagoup.java:121)
2013-07-16 11:00:08,489 at com.dukascopy.api.impl.execution.TaskOnBar.postData(TaskOnBar.java:84)
2013-07-16 11:00:08,491 at com.dukascopy.api.impl.execution.TaskOnBar.call(TaskOnBar.java:62)
2013-07-16 11:00:08,492 at com.dukascopy.api.impl.execution.TaskOnBar.call(TaskOnBar.java:22)
2013-07-16 11:00:08,494 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
2013-07-16 11:00:08,495 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
2013-07-16 11:00:08,497 at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.runTask(ScienceThreadPoolExecutor.java:904)
2013-07-16 11:00:08,498 at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.run(ScienceThreadPoolExecutor.java:926)
2013-07-16 11:00:08,500 at java.lang.Thread.run(Thread.java:619)
2013-07-16 11:00:08,534 java.lang.NullPointerException @ jforex.strategies.gonnagoup.Amount(gonnagoup.java:156)

This is the error we get from your strategy. Please kindly check the code. This is not related to a problem of Remote Server.


That is exaclly what I'm talking about.
In line 156 I have a function responsible for size of position.

Quote:
private double Amount() {
double amount;
if (context.getAccount().getEquity() >=300000)
{amount = 0.01;}
else {amount = 30;}
return amount;
}


It used to work in previous version and now it doesn't.
If something is wrong with this function please let me know.

Regards,
Piter


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Wed 17 Jul, 2013, 15:12 
User avatar

User rating: 8
Joined: Wed 21 Apr, 2010, 10:42
Posts: 1167
merlin wrote:
Support, thanks for balance back.
Now, I ´m not able restart strategy. Pls help


Merlin, your account is set back to Ok status and the strategy is restarted now. The strategy has opened an order 40 sec ago.
The balance of -5 mil is now fixed and should now happen again.


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Wed 17 Jul, 2013, 15:28 
User avatar

User rating: 8
Joined: Wed 21 Apr, 2010, 10:42
Posts: 1167
piter44 wrote:
Quote:
private double Amount() {
double amount;
if (context.getAccount().getEquity() >=300000)
{amount = 0.01;}
else {amount = 30;}
return amount;
}


It used to work in previous version and now it doesn't.
If something is wrong with this function please let me know.

Regards,
Piter


Actually, this could never work before!!!!! You have null value in context according to you code:

Line 13 private IContext context = null;

You should add a line this.context = context; in onStart method to avoid this NPE.

You have updated your strategy on 14.07.2013 and you've changed your strategy logics!! And you say that it always worked like this! :evil:

Your strategy will not work this month as you've already used one update per month.

This usually happens when you update a strategy without testing it!!! :?


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Wed 17 Jul, 2013, 15:46 
User avatar

User rating: 8
Joined: Wed 21 Apr, 2010, 10:42
Posts: 1167
TradingwithEA wrote:
same problem. my strategy only made one order and stopped. Pls check and restart it. tks.


Did you test your strategy over last few days? He tested and it does not open any new positions. No trading signals are generated.


 
 Post subject: Re: Strategy running but not executing orders Post rating: 0   New post Posted: Wed 17 Jul, 2013, 15:59 
User avatar

User rating: 8
Joined: Wed 21 Apr, 2010, 10:42
Posts: 1167
Victor wrote:
Thank you support for the Enlightenment. But the strat is not working, still.



What's not working? All's working. The status of the strategy is Running. The last order was made yesterday.
Open the platform check yourself. Thanks.


 

Jump to:  

  © 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