• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom watchlist (different symbols on different days)

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

    Custom watchlist (different symbols on different days)

    Does NinjaTrader support running strategy backtesting against a list of different symbols for different days? i.e. I'm looking to backtest a strategy against 5-10 symbols each day, but the list is different each day. So the upload mechanism would have to take both dates and symbols as inputs. Or is there a way to manually enter this in NinjaTrader or C#?

    #2
    Hello JasonH,

    This is not a functionality NinjaTrader is capable of.

    While you can read a text file in a script, and use that information to do a BarsRequest, it would not be supported to read that information and use this for dynamic AddDataSeries calls.

    From the help guide:

    "Arguments supplied to AddDataSeries() should be hardcoded and NOT dependent on run-time variables which cannot be reliably obtained during State.Configure (e.g., Instrument, Bars, or user input). Attempting to add a data series dynamically is NOT guaranteed and therefore should be avoided. Trying to load bars dynamically may result in an error similar to: Unable to load bars series. Your NinjaScript may be trying to use an additional data series dynamically in an unsupported manner."
    https://ninjatrader.com/support/help...dataseries.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you very much for the reply Chelsea

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Alfred, Today, 10:20 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_PatrickG  
      Started by emuns, Today, 10:34 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by swcooke, Yesterday, 10:39 PM
      3 responses
      19 views
      0 likes
      Last Post bltdavid  
      Started by stoner, Today, 09:13 AM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Tyler  
      Started by [email protected], Today, 08:56 AM
      2 responses
      7 views
      0 likes
      Last Post sabankaradeniz@gmail.com  
      Working...
      X