Hi,
I'm having constant issues with the entire Custom project. I work mostly with creating my own Indicators and Strategies and have also created a custom performance metric. But most of my work is with Strategies, and do most of my development work (creating / editing) and debugging with Visual Studio 2017.
The problem I face is with NT's management of the project files vis-a-vis Visual Studio. Here is what I am seeing on a regular basis:
1. When I exclude a file from compilation in NT, it is not reflected in VS. Currently, I have excluded ALL my Strategy source files from NT. The only active ones are the NT system strategies. I restart NT, and everything shows correctly. Then I open VS from the NT Editor icon. In VS, all these files are all still shown active as part of the project. This includes both the "current" file and the "excluded" file prefixed with '@@'.
2. If I 'Remove' one of the excluded files in NT and then go to VS, I see that NT has removed the excluded '@@' file, but the original is still in the project.
3. I frequently get compilation errors on source files that have been excluded. When I right-click on the error message and select 'Exclude From Compilation', nothing happens, presumably because it is already excluded. When I select 'Open' from the right-click menu on the error message, NT opens the '@@' version of the file. If I open the grayed-out version from the editor explorer by right-clicking on it and selecting 'Open', it opens the one without the '@@'.
4. Since the 'Remove' function is not removing the files, I decided to delete all the files I no longer need from the Windows file system using File Explorer. When I restart NT, the files come back!! Where is NT getting them from? Same thing happens with files that I just move to some other folder not in the My Documents/NingaTrader 8 set of folders.
5. I exclude some source files for old Strategies I no longer want. I compile. If I open a Chart or Strategy Analyzer, those excluded Strategies will still appear the list of Strategies to choose from.
There are other anomalies and quirks I experience, but I think the above covers the biggest ones
In a previous posting I was advised not to compile or manage the project with VS and I am not doing that any more. Is it possible VS has corrupted something?
Any suggestions?
Thanks,
Chaz
Comment