Quote:
1) exactly how do I code the Master strategy to wait until it has received a prospective trade (or message) from ALL clients ?
One way could be to have an array of flags. The array would contain information on whether each trading strategy has sent a signal.
When all the flags in the array are set, manger strategy can start its job.
Quote:
2) exactly how do I code each trading strategy to WAIT after it has sent the message in (1), until it receives a return message from the Master strategy (the message being a list of optimized trades)
Where could be a flag that would indicate that trading strategy is waiting for manager strategy.
The flag would be set when trading strategy sends the message to the manager strategy.
Trading functions would do nothing if this flag is set.
When master strategy has finished and sent notification back to the trading strategy this flag would be removed.