The situation is that I have developed a simple indicator that just reports either the closing price of the final bar or else a -1, depending on how recent that final bar is. It is intended to support filtering in Market Analyzer.
It compiles fine. I can add it to a Market Analyzer window and it works fine -- it delivers the intended values. Filtering on its values also works fine. In short, no problems that I know of.
HOWEVER, when I try to save the template Ninja Trader hangs, using the typical 12.5% of my CPU that it uses whenever it hangs.
I have tried quite a variety of things, with no luck. Here are some of them:
- I keep an Output window up -- nothing shows there
- I have looked at the log and trace files, and see nothing suspicious there
- I have tried re-compiling the indicator. It compiles fine, but does not affect my problem. The indicator functions just fine, but I cannot save any template that includes it.
- I have tried making the Market Analyzer window as simple as possible -- just the "Instrument" column and the column for my indicator. The window functions as expected, except that I cannot save that template.
- I can save any template, or altered template, that I have tried -- as long as it does not contain this indicator
- I have tried saving over the template I loaded (and to which I added the indicator) -- no luck
- I have tried saving to a new template name -- no luck doing that either
Basically, I simply cannot save any Market Analyzer template that includes this indicator. Everything else about the system is fine. No visible errors. I can modify and save all the templates I want -- as long as they do not contain this indicator. Any attempt to save a Market Analyzer template that includes this indicator hangs Ninja Trader. Windows says the process is non-responsive. Ninja Trader continuously chews up a very solid 12.5% of my CPU for as long as I let it run. When I let it run for over 15 minutes just now, it stayed at a very solid 12.5%, with an unchanging thread count of 17 threads.
=====
That's it ... I'm at a loss. Please help me understand what is going on, and how I can save a Market Analyzer template that includes this indicator. If there is any other info that will help you diagnose this, please let me know.
--EV
Comment