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 judysamnt7, 03-13-2023, 09:11 AM
            4 responses
            59 views
            0 likes
            Last Post DynamicTest  
            Started by ScottWalsh, Today, 06:52 PM
            4 responses
            36 views
            0 likes
            Last Post ScottWalsh  
            Started by olisav57, Today, 07:39 PM
            0 responses
            7 views
            0 likes
            Last Post olisav57  
            Started by trilliantrader, Today, 03:01 PM
            2 responses
            21 views
            0 likes
            Last Post helpwanted  
            Started by cre8able, Today, 07:24 PM
            0 responses
            10 views
            0 likes
            Last Post cre8able  
            Working...
            X