I am gratified to know that it doesn't lock up for you. Still does for me. The attached strategy is the same as I sent before except for declaring the IOrders private, checking for a null order in OnExecution, and adding a test for CurrentBar==0 in the trend calculation in OnBarUpdate.
Question: Why would it matter if the word 'private' is missing? According to Microsoft's C# programming guide, "the access level for class members and struct members, including nested classes and structs, is private by default."
If the attached script works for you, but not me, perhaps I need to re-install or reset NT7? I'm using the 64-bit version, if it matters.
-Alex
Comment