Dukascopy
 
 
Wiki JStore Search Login

Strategy has been stopped on Remote Server
 Post subject: Strategy has been stopped on Remote Server Post rating: 0   Post Posted: Tue 23 Sep, 2014, 09:16 
User avatar

User rating: 0
Joined: Mon 07 May, 2012, 07:24
Posts: 69
Location: CroatiaCroatia
Hello!

Today received email message about one of my strategies running on remote server (on live account) with following text: "Strategy aucd_v14 has been stopped on Remote Server due to Strategy is going to be stopped - Max overload period exceeded : 60 seconds".
All my strategies are build with VJF.

So, I have two questions so far:

1.) What this message mean?
2.) How to improve strategy to avoid stopping on remote run?

Stopped strategy is in attachment.

Regards.


Attachments:
aucd_v14.vfs [61.05 KiB]
Downloaded 116 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Strategy has been stopped on Remote Server Post rating: 0   Post Posted: Tue 23 Sep, 2014, 13:41 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Greetings,

Following the notification message that you received:
[23.09.2014 01:45:41 23.09.2014 01:45:41 Server message Strategy is going to be stopped - Max overload period exceeded : 60 seconds
23.09.2014 01:45:51 23.09.2014 01:45:51 Server message Stopping "aucd_v14" strategy at 2014-09-23 01:45:51.852 GMT on the remote server.]

your strategy was stopped due to the maximum CPU overload (strategy server CPU)for more than 60sec. This basically means that you need to optimize your code because it requires a lot of CPU usage.

I had a quick look into your vfs file, it looks like you're retrieving indicator's data on daily basis and you trade on 10sec / on the other hand there is several checks based on tick start point that you probably need to rethink knowing that Ontick methods requires a lot of CPU usage.

Hope this helps


 
 Post subject: Re: Strategy has been stopped on Remote Server Post rating: 0   Post Posted: Wed 24 Sep, 2014, 11:30 
User avatar

User rating: 0
Joined: Mon 07 May, 2012, 07:24
Posts: 69
Location: CroatiaCroatia
amine_chourou wrote:
I had a quick look into your vfs file, it looks like you're retrieving indicator's data on daily basis and you trade on 10sec / on the other hand there is several checks based on tick start point that you probably need to rethink knowing that Ontick methods requires a lot of CPU usage.

Hope this helps


Hello Amine, thanx for quick reply.

I understand what the problem is, but I'm not sure if I knew how to solve it.
Can you suggest what time trade would be the best (1min, 5min ...) to eliminate CPU overload?
Given that the strategy has trailing stop in itself, whether trailing stop behaving the same as onTick, if it is connected to onCandle?

regards


 
 Post subject: Re: Strategy has been stopped on Remote Server Post rating: 0   Post Posted: Thu 25 Sep, 2014, 14:21 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi there,

Actually I'm not really able to assess your strategy in terms of performance and therefore suggesting any trading period but it is clear that there is useless checks that consumes a lot of CPU and my guess was based on the OnTick starts. Meanwhile, let me bring to your attention that your strategy is generating errors when run in real-time mode. These errors should be resolved prior to going further.
If you wish to provide a detailed description of the conditions that you are not 100% sure of their implementation in VJF , I can try to help you

PS: A trailing step based on 1 pip is really too sensitive in my opinion but generally speaking you can still work OnCandle with trailing step commands.


 
 Post subject: Re: Strategy has been stopped on Remote Server Post rating: 0   Post Posted: Thu 25 Sep, 2014, 14:51 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
An example from your strategy:
You are checking CCIup / Down variable on daily basis but you are pushing trades based on 10sec candles ! Why ??
In any case the CCIup/down Boolean variable could get the value true (if confirmed) only at the end of the day so using ticks/10sec candles is in some ways a paradox ...
I recommend you to restructure the strategy conditions and rebuild it from scratch.


 
 Post subject: Re: Strategy has been stopped on Remote Server Post rating: 0   Post Posted: Mon 29 Sep, 2014, 13:27 
User avatar

User rating: 0
Joined: Mon 07 May, 2012, 07:24
Posts: 69
Location: CroatiaCroatia
Hi Amine,
I doing some homework over the weekend and attach strategy with little modification.

amine_chourou wrote:
Hi there,

Actually I'm not really able to assess your strategy in terms of performance and therefore suggesting any trading period but it is clear that there is useless checks that consumes a lot of CPU and my guess was based on the OnTick starts. Meanwhile, let me bring to your attention that your strategy is generating errors when run in real-time mode. These errors should be resolved prior to going further.
If you wish to provide a detailed description of the conditions that you are not 100% sure of their implementation in VJF , I can try to help you

PS: A trailing step based on 1 pip is really too sensitive in my opinion but generally speaking you can still work OnCandle with trailing step commands.


OnTick start point connection was removed and everything is connected with OnCandle start point as you suggest me.
I also noticed errors when start strategy in test mode (now you said in real time) and these errors are present in first defaultperiod (1day) when tested, after that errors gone. I haven't luck to correct this but looking to java console, I suspect it has something with problem for strategy to get past daily candles values. So please for advice to solving that.
Java console:
java.lang.NullPointerException
at com.dukascopy.vfruntime.handlers.k.a(Unknown Source)
at com.dukascopy.vfruntime.handlers.c.c(Unknown Source)
at com.dukascopy.vfruntime.handlers.c.c(Unknown Source)
at com.dukascopy.vfruntime.handlers.c.c(Unknown Source)
at com.dukascopy.vfruntime.handlers.n.a(Unknown Source)
at com.dukascopy.vfruntime.c.l.a(Unknown Source)
at com.dukascopy.vfruntime.c.l.a(Unknown Source)
at com.dukascopy.vfruntime.c.l.a(Unknown Source)
at com.dukascopy.vfruntime.c.l.a(Unknown Source)
at com.dukascopy.vfruntime.c.l.a(Unknown Source)
at com.dukascopy.vfruntime.c.j.onBar(Unknown Source)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:428)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:370)
at java.lang.Thread.run(Unknown Source)

Also, I increase trailing step value.


amine_chourou wrote:
An example from your strategy:
You are checking CCIup / Down variable on daily basis but you are pushing trades based on 10sec candles ! Why ??
In any case the CCIup/down Boolean variable could get the value true (if confirmed) only at the end of the day so using ticks/10sec candles is in some ways a paradox ...
I recommend you to restructure the strategy conditions and rebuild it from scratch.


For trading, strategy look for CCI up/down state and also RSI(14) value based on current candle. In past, strategy missed some good trade opportunities because RSI get value +50/-50 later that day. So idea is to check this value more frequently. Maybe I totally missed and went to wrong direction, so kindly ask You to help me with that.

Reagards


Attachments:
aucd_v14_1.vfs [73.5 KiB]
Downloaded 92 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Strategy has been stopped on Remote Server Post rating: 0   Post Posted: Mon 29 Sep, 2014, 15:52 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi there,

I made some minor changes in your file mainly regarding the way the RSI indicator is built @15mn candle period: If you want to check the RSI data on 15mn basis once the daily RSI reaches the needed level then you need to build another RSI @15 so that you will have another output which corresponds to the right trading period. A period filter doesn't really do any change if you still use the previous RSI@daily output.
Please double check and let us know your thoughts.

Thanks


Attachments:
aucd_v14_1.vfs [71.82 KiB]
Downloaded 79 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Strategy has been stopped on Remote Server Post rating: 0   Post Posted: Tue 14 Oct, 2014, 15:02 
User avatar

User rating: 0
Joined: Mon 07 May, 2012, 07:24
Posts: 69
Location: CroatiaCroatia
Hello again!
I must apologize because I could not be present on this topic because of other obligations.
First, many thanks to the efforts of some problems with CPU overload.
Secondly, I must say that a large number of errors decreased which occurred in the strategy log.

Strategy with RSI indicator with a 15-minute period has not worked well because it had a lot of trade with a loss, so I still kept on the daily RSI indicator.
Given that the main problem is the strategy CPU overload I tried to focus on avoiding this with removing redundant blocks.
Since I have a few strategies on a remote server with the same logic just different currency pairs, I added a variable time (minutes) to avoid simultaneous sending the order to the system (I'm not sure whether the system is able to receive orders at the same time).
Last week I put five strategies to the remote server, and so far none of it stopped due to excessive load on the processor, although some errors still present.
I put the modified version of the strategy with comments in it, and I kindly ask you to view it and we point out any irregularities that the strategy could be improved.

Best regards!


Attachments:
aucd_v15_2.vfs [72.41 KiB]
Downloaded 78 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Strategy has been stopped on Remote Server Post rating: 0   Post Posted: Tue 14 Oct, 2014, 16:52 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi there,

I'll have a look into it and get back to you asap!


 

Jump to:  

cron
  © 1998-2025 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