|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
broadcast question |
us_copiosus
|
Post subject: broadcast question |
Post rating: 0
|
Posted: Fri 11 Sep, 2015, 20:32
|
|
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
|
Hi
I have three strategies running simultaneously on the demo platform
At certain intervals, each strategy broadcasts 2 messages The first message says "IN" The second message states the next trade prediction (direction and amount)
On the first time round one strategy received 3 of the 4 expected messages another received 2 of the 4 expected messages and the third received 1 of the 4 expected messages.
Am I having trouble here because of the restriction to 1 message per second ?
On the second time round each strategy received none of the specif messages which appeared on the first time round but they all received the missing messages from round one.
Totally confused by this result
Bob M
|
|
|
|
|
API Support
|
Post subject: Re: broadcast question |
Post rating: 0
|
Posted: Thu 17 Sep, 2015, 08:05
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
It is not possible to broadcast more than 1 message per 1 second. Please provide code that sends the messages.
|
|
|
|
|
us_copiosus
|
Post subject: Re: broadcast question |
Post rating: 0
|
Posted: Thu 17 Sep, 2015, 08:23
|
|
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
|
I have simplified my approach to just requiring one message every six hours
The code is as follows:-
try { myEngine.broadcast(name, "New" + "curr_trade_dir " + "myCurrentPositionValue"); } catch(Exception ex) { ex.printStackTrace(); myConsole.getErr().println("Error while broadcasting: "+ ex); }
When I run Broadcast.java on the demo platform I get the following error messages:
2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 2 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 2 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 1 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 1 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 0 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 998 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 983 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 983 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 983 / 1000 2015-09-17 07:29:21 Error while broadcasting : com.dukascopy.api.JFException: Broadcast min period exceeded : 983 / 1000
|
|
|
|
|
API Support
|
Post subject: Re: broadcast question |
Post rating: 0
|
Posted: Fri 02 Oct, 2015, 13:41
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Broadcast message can not be sent more than once in a second.
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|