1. Class Strategy1 in file Strategy1.cs
2. Same class Strategy1 defined in imported DLL.
(this happen by exporting the first Strategy1 and importing it back, which resulted in new Strategy1.dll in the Custom folder.)
BTW, I also found, that if both classes coexist, then the *.cs file has priority
and is executed the Strategy Analyzer instead of the class contained in DLL.
Question:
How Ninjatrader handles such a conflicting scenario when there are more strategies with the same class?
(one in a *.cs file and same in the imported *.dll file).
Related question:
I am also interested, how NT handles when multiple strategies (for examle Strategy1, Strategy2, Strategy3) and each of them extend the same CustomBaseStrategy.
I export all 3 strategies, then import them back. Does it not make any conflict, when each one of the 3 strategies imports the same base class CustomBaseStrategy?
I found, that is does'nt make any conflict, but I would like to understand why and how it works. Probably there is some level of isolation, which I have not found documented anywhere.
Could you please explain how NT handles these scenarios mentioned above and why multiple classes with same name can coexist in NT ?

Comment