I am developing a solution as an indicator, that requires me to take several inputs from the user from another application. Now, one of those inputs is the instruments that the indicator needs.
Now, as you know that we can only add instruments to an indicator (or a strategy for that matter) only in the Initialize method. So, i need to be able to get the inputs from the user (which i have all figured out) and then initialize the indicator using those inputs and adding the required instruments.
Now, i have been trying out different solutions, one that seems plausible is that i explicitly call the Initialize method once the user is done with entering the inputs. So there would be something like this in my OnBarUpdate method:
protected override void OnBarUpdate() { if(DataReceived) { //Set a data structure to hold the input data Initialize(); } }
I would very much appreciate a quick response on this. Hoping to hear from you soon.
Thanks
Umer
Comment