Thanks for your post.
It would be difficult to copy your code and test as you are not showing all of the code (missing the variable declaration area and the properties area). However, rather than posting longer and longer amounts of code what I recommend is that you write an e-mail to PlatformSupport[at]NinjaTrader[dot]Com and attach your source code file to the e-mail. For the email subject please mark: Atten:Paul and include a link to this thread. If possible, you may want to include screenshots of a chart that shows what you are trying to accomplish. With your complete code and visual understanding of your goal we may be better able to assist overall instead of advising line by line what you are posting.
Comment