Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Empty parameter grid

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

    Empty parameter grid

    Howdy,

    Encountered a strange problem. Wrote and compiled strategy X. Tried to launch it from chart, but nothing happended. Then tried to launch it from Control Center / Strategies pad (right mouse click), picked up the strategy from the list, but the parameter grid remained empty. Tried another strategy, which worked well, then tried again X, but NT did not update the parameter grid. Any idea? Using NT6.5, MS Windows XP & MS Server Standard 2008 32-bit, same problem in both environments, usually no problems.

    Is this OK (no compiling errors):

    public struct mktData {
    public double price;
    public DateTime time;
    }

    mktData[] trades = new mktData[10];

    trades[0].time = DateTime.Now;

    #2
    jp_kettunen, while using structs is outside of our supported scope here (more general C#), this would likely work - any errors in your log tab as you apply your strategy? Is the SampleMACrossOver one working as expected?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Good point Bertrand, the Log provided the answer: array indexing error in Initialize().
      A case of decayed vigilance as a result of combining 8 hours' working day with all-night coding sessions.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ScottWalsh, 04-16-2024, 04:29 PM
      7 responses
      34 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by cls71, Today, 04:45 AM
      0 responses
      5 views
      0 likes
      Last Post cls71
      by cls71
       
      Started by mjairg, 07-20-2023, 11:57 PM
      3 responses
      214 views
      1 like
      Last Post PaulMohn  
      Started by TheWhiteDragon, 01-21-2019, 12:44 PM
      4 responses
      547 views
      0 likes
      Last Post PaulMohn  
      Started by GLFX005, Today, 03:23 AM
      0 responses
      3 views
      0 likes
      Last Post GLFX005
      by GLFX005
       
      Working...
      X