I want to use multiple classes within a strategy however I can't get this working. The OnBarUpdate portion of the strategy searches for the criteria to enter into a position and then creates an object to handle setting stop losses and profit targets as they can change on a tick by tick basis. The objects are stored within a list - I think the problem is happening here. When I try to access the object through the list it gives me the error "Object reference not set to an instance of an object." I believe I am instantiating the object correctly (I use the new keyword when intiailizing the list). Any ideas about what's not working?
I can provide source if needed.
Thanks!

Comment