I corrected some misspellings (typos)
After following your suggestion to look at the SMA Crossover strategy, I noticed that in the Variables section the variables were declared as private and started with lower case letters, as you mentioned, and in the Properties section the same Variables were listed as Public with first letters capitalized. I changed my code to conform.
I thought this would eliminate the only remaining compiler error (properties repeat already declared variables). However, changing to match the SMA Sample code did not eliminate that compiler error.
I believe I may have sent you a code listing incorrectly which may account for your saying that the errors you pointed out were still not correct. Attached is my latest code. I don’t know whether my latest changes have been saved because when I hit Save, the error message comes up and I can’t be sure the new code is saved.
I believe all your corrections have been carried out and I am attaching this new code for help in clearing up the duplication of variables in the properties section. However, I noticed that in the SMA sample the same duplication exists.
This has been a harrowing experience compared to coding in Easy Language. I have been studying C# as we go along but I must say that C# as an Object Oriented Programming language presents a formidable self-tutoring project. Also, there are differences between C# and the Ninja variety of it.
I appreciate very much all your wonderful help and, in particular, your patience with me. Thanks again for your invaluable help.
Open item: Correct compiler warning: Your strategy likely holds one or more recursive properties which could cause Ninja Trader to crash. It then lists all the property entries.

Comment