Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategies Missing

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

    Strategies Missing

    Knave been working in NT script deveopelping strategies for about two months and now I can't add any NEW strategies and the Strategy I was working on is ONLY listedi. "edit strategy".. When I go to apply the attract to a chart it is gone! I tried resting the DB and reinstalling the NT software ... I also tried to create a new strategy from an export; which again shows up in "edit strategy", but not able to applyitto a chart.

    This all started when I re-compiled a strategy and it diss-appeared.

    Thanks for your help as I don't know what else to do!

    Chris

    #2
    Sorry for miy spelling guys it's harder to type fast on iPads...

    I reviewed to log and noticed that it says there in no default construtor defined for the missing strategy, but nothing major was changed.

    This gets put into the log when I pull up the window to add the strategy to the chart.
    Last edited by cjwallac; 01-26-2011, 12:46 PM.

    Comment


      #3
      Hello Chris,

      Can you let us know if you see any error messages listed in log tab of control center? If there are any issues running any of the strategies Initialize() methods, it will be noted there.
      Ryan M.NinjaTrader Customer Service

      Comment


        #4
        Ryan,


        I reviewed to log and noticed that it says there in no default construtor defined for the missing strategy, but nothing major was changed. This gets put into the log when I pull up the window to add the strategy to the chart.

        Also there is a unable to deserialize data: Thereis an error in XML document(1,2).. That only seems the get logged when I delete strategies.

        Comment


          #5
          If you have errors calling Initialize() for even one strategy, it can interfere with operations for all strategies. Look at what strategy is identified and comment or delete the lines causing the issue. If you'd like help understanding why it's causing an error, share the lines of code that are contributing.
          Ryan M.NinjaTrader Customer Service

          Comment


            #6
            There is very little code in the initilize of the strategy... I have postied them below:

            protectedoverridevoid Initialize(){
            Unmanaged =
            true;
            g_Initialize =
            true;

            // Add a 1 tic Bars object: BarsInProgress index = 1
            CalculateOnBarClose = false;
            Add(PeriodType.Tick,
            1);
            }

            I even commented out these lines and the same issues arrises.

            Comment


              #7
              I pasted my backup from last night into the Strategy then put the code I wrote today back in and now everything seems to be working... Maybe I dissturbed something and didn't realize! Thanks!

              Comment


                #8
                Glad to hear. Thank you for the follow - up.
                Ryan M.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by PaulMohn, Today, 03:49 AM
                0 responses
                3 views
                0 likes
                Last Post PaulMohn  
                Started by inanazsocial, Today, 01:15 AM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_Jason  
                Started by rocketman7, Today, 02:12 AM
                0 responses
                10 views
                0 likes
                Last Post rocketman7  
                Started by dustydbayer, Today, 01:59 AM
                0 responses
                2 views
                0 likes
                Last Post dustydbayer  
                Started by trilliantrader, 04-18-2024, 08:16 AM
                5 responses
                23 views
                0 likes
                Last Post trilliantrader  
                Working...
                X