Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Walk Forward freezes

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

    Walk Forward freezes

    Sometimes the WF freezes in the middle of the overall process and I have to force NT closed to get it unlocked.

    I'm running WF on a basket of futures. This seems to happen using any Optimizer (Genetic or Default). It also always freezes on the last instrument in the basket.

    When I look at TaskManager NT is usually using about 13% of the CPU(s) and memory usage is stable.

    I have code in OnTerminate that stores xml in the UserData for the Instrument. Adding this to my strategy seems to be when this freeze started happening, but I'm not sure.

    Any ideas on what might be causing this?
    daqu40
    NinjaTrader Ecosystem Vendor - QTradez

    #2
    daqu40,

    I am happy to assist you.

    Backtesting/Optimization runs multi-threaded, as such it can cause issues when you attempt to access files because more than one strategy is attempting to access a file at the same time. There are a couple solutions to this outlined in the following thread :



    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the link Adam,

      I'll take a look. However I'm not accessing a file. Unless adding working with Instrument.MasterInstrument.UserData is actually a file access. I'll see about making a semaphor before doing any write operations to the UserData.
      daqu40
      NinjaTrader Ecosystem Vendor - QTradez

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by XXtrader, Today, 11:30 PM
      0 responses
      1 view
      0 likes
      Last Post XXtrader  
      Started by MarianApalaghiei, Today, 10:49 PM
      2 responses
      8 views
      0 likes
      Last Post MarianApalaghiei  
      Started by love2code2trade, Yesterday, 01:45 PM
      4 responses
      28 views
      0 likes
      Last Post love2code2trade  
      Started by funk10101, Today, 09:43 PM
      0 responses
      8 views
      0 likes
      Last Post funk10101  
      Started by pkefal, 04-11-2024, 07:39 AM
      11 responses
      37 views
      0 likes
      Last Post jeronymite  
      Working...
      X