Hi there,
as a general advise, try to use Visual Studio to code any strategies. Once done, reopen in OQ to run them...
Debugging, Context help is much better in VS...
Quote:
I need them to be able to communicate
this is best done with a global variable.
Define a Namespace (like AlloController) and add an instance of that to the Global variables in the scenario:
Code:
AlloController alloController = new AlloController();
strategy.Global.Add("allocator", alloController);
Then, under your strategy, make a reference to the global AlloController like this:
Code:
public AlloController alloController;
//and add below into OnStrategyStart to link to the global instance of the AlloController....
protected override void OnStrategyStart(){
alloController = Global["allocator"] as AlloController;
}
And once that is in place, you can have Events fire from the AlloController or whatever you like. Or Rank the strategies...
Sorry, I am super involved right now, and hardly have time for free Support. You can check out the team fom SQ/OQ for paid consultancy or myself.
Regards
Mike