Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy not acknowedging edits made

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Strategy not acknowedging edits made

    I'm trying to edit a strategy in 7.0.0.9 and am encountering strange behavior.
    I copy and pasted a section of code which was a subroutine named "GoLong" which I planned to edit. Before I was able to edit I received an error message stating that my strategy "already defines a member called 'GoLong' with the same parameter type." But after changing the subroutine to name "GoShort" and editing the appropriate lines in the code I tried to compile my strategy, but received the exact same error message. However there is no longer "GoLong" subroutine on the line referenced by the error message. What's the deal?

    Thanks,

    Ron

    #2
    Similarly on another strategy I'm trying to edit I added a line of code which resulted in an error message. After commenting out the line of code I tried to compile the strategy but received the same error message which referenced code which is now commented out.

    Ron

    Comment


      #3
      OK. I corrected a problem which would seem to be unrelated to the error message, but now everything compiles OK. I'm a little confused but am no longer having the problem.

      Comment


        #4
        rsi,

        Sounds to me like you are trying to name the same method in 2 different places.

        When you look at your error log, you should see that there is probably another file/strat with the same code.

        Trying using Private instead of Public, or if this is a method you want to "share" between strats, then put it in shared code file (user something, forget the name because we use our own base class now). Userdefined.cs I think.

        I saw no one replied, so I thought I would try to help. The reason you probably didn't get a quick reply is because this is a pilot error, not an NT error and they are buried working on NT7.

        I don't want to speak for them, just an assumption on my part. Hope this helps to clear your confusion.

        Check out some C# literature on the net. csharpcorner.com is a good place to start.

        Regards,

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        607 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        353 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        560 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        561 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X