Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cannot find custom strategy in NT8

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

    Cannot find custom strategy in NT8

    Hi there,

    Just started trying NT8. Migrated a custom strategy from NT7 and compiled without any errors. When trying to add it to charts, I cannot find it in the list, only built in ones there. Did I miss anything here?

    Thanks,
    Gary

    #2
    All 3 names need to be the same.

    The filename, "MyCustomStrategy"

    This: public class MyCustomStrategy : Strategy

    And This:

    protected override void OnStateChange()
    {
    if (State == State.SetDefaults)
    {
    Description = @"Enter the description for your new custom Strategy here.";
    Name = "MyCustomStrategy";
    Last edited by sledge; 02-12-2016, 10:41 PM. Reason: fixed typo

    Comment


      #3
      Thank you for quick response. I did miss this:

      Description = @"Enter the description for your new custom Strategy here.";
      Name = "MyCustomStraddtegy";

      But it's still not working after adding it. Again, I converted it from NT7 by fixing all the compiling errors, is there anything I need to do when converting from 7 to 8?

      Comment


        #4
        I have no idea how simple or complicated your strategy is - but there is a lot to change.

        You might check this out - probably closet thing to a converter.

        Comment


          #5
          Tried to debug a little bit, so looks like I cannot have if-else inside
          if (State == State.SetDefaults){

          }

          Any suggestions?

          Comment


            #6
            Never mind, I fixed it by adding if-else to if (State == State.Configure){}. Thank you for the help.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            85 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            47 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            29 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            32 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            67 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X