I am trying to integrate a C#/WPF app with NinjaTrader 8. I need a way to 100% guaranteed way to determine the folder paths of the following two folders:
1. "NinjaTrader 8\bin\Custom"
2. "NinjaTrader 8\bin\Custom\Strategies"
This may seem really simple, i.e.:
string fullPathCustom = Path.Combine(Environment.GetFolderPath(Environment .SpecialFolder.MyDocuments), "bin", "Custom");
string fullPathCustomStrategies = Path.Combine(Environment.GetFolderPath(Environment .SpecialFolder.MyDocuments), "bin", "Custom", "Strategies");
But I have two concerns:
1. Could a user install NinjaTrader 8 in a way such that these two folders are not in the "My Documents" folder?
2. Do the German, French, and other translated versions of NinjaTrader 8 use the same English words for these directory names, or do they use translated versions of "NinjaTrader 8", "bin", "Custom", and "Strategies"?
Finally, if the code I wrote above won't work for all NinjaTrader 8 users around the world, regardless of custom installation choices and spoken language, what C# code can I use to get the full directory paths of these two directories?
Thanks in advance!
EquityTrader
Comment