I have a question for any of the forum's experienced programmers about good practice regarding the use of namespaces.
I have written a class for use in my strategies, which I have put in a separate file. The class is defined in namespace NinjaTrader.Strategy and is available to all my strategy files.
I now want to use that class in an indicator, but it is not available within my indicator file.
My quick solution is to add
"using NinjaTrader.Strategy" in the Using declarations section of my indicator file.
Is this good practice, or should I define the class in namespace NinjaTrader.Indicator as well?
Is there a better way?
Cheers
Tony
Comment