Dukascopy
 
 
Wiki JStore Search Login

calling broadcast experts...
 Post subject: calling broadcast experts... Post rating: 0   New post Posted: Thu 10 Sep, 2015, 05:58 
User avatar

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 Dukascopy demo platform
I have the following code in all three:-

onMessage..........
if (message instanceof IStrategyBroadcastMessage) {
myConsole.getOut().println("Broadcast: " + message);
}

onBar.............
try {
myEngine.broadcast(name, " IN");
} catch(Exception ex) {
ex.printStackTrace();
myConsole.getErr().println("Error while broadcasting: "+ ex);
}
.........
.........

try {
myEngine.broadcast(name, message2_string);
} catch(Exception ex) {
ex.printStackTrace();
myConsole.getErr().println("Error while broadcasting: "+ ex);
}
.........

However, I do not see any broadcasts on the console log
What am I missing ?

Bob M

p.s. I have run the example BroadcastStrategy and CAN see the broadcasts on my three strategies (console)


 
 Post subject: Re: calling broadcast experts... Post rating: 0   New post Posted: Thu 10 Sep, 2015, 15:58 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
You are asking wrong people.
Please forward your question to corresponding forum thread.
https://www.dukascopy.com/swiss/english ... m.php?f=89


 

Jump to:  

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