Dukascopy
 
 
Wiki JStore Search Login

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.

Receive message
 Post subject: Receive message Post rating: 0   New post Posted: Wed 11 Apr, 2012, 18:39 

User rating: 0
Joined: Fri 24 Feb, 2012, 13:25
Posts: 7
Hi, I have started programming strategies only some weeks ago.
Here is my issue:
I wanted to program a strategy, which sends messages to other strategies to adapt parameters such as the Stop-Loss.
I found such a command

engine.broadcast("Topic","Message");

but it sends messages to the receiver strategy sporadically.
Only after restarting it many times it sends the message randomly and I don't know why.
Does it have something to do with the Server? (e.g Time-Restriction for the Messages--->only one messages every 10 seconds?)
Or is it an issue of the message-checker command
console.getOut().println("Message: " + message.getContent()

It would be nice if somebody can help me with that :)

Thank you

Finlay


 
 Post subject: Re: Receive message Post rating: 0   New post Posted: Thu 12 Apr, 2012, 09:36 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Could you please provide example strategies and a precise case?


 

Jump to:  

  © 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