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?

    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 CarlTrading, Yesterday, 11:51 AM
      0 responses
      16 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, Yesterday, 11:48 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-25-2026, 09:53 PM
      0 responses
      16 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 03-25-2026, 09:51 PM
      0 responses
      13 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 03-23-2026, 11:13 AM
      0 responses
      19 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X