Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

read strategy list from text file

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

    read strategy list from text file

    Is there a way to load the strategies tab with a list comprised of the same strategy, with up to 50 instances, each having a different stock and time series. The list has some changes daily.

    Doing this manually is very click intensive and error prone.
    Is there some way to read a prepared text file with the relevant parameters? It would be very helpful.

    Are there any features in ninja 8 which would be even partially helpful in automating the task of loading many strategies into the strategies tab?
    Or possibly a way to alter some of the parameters in an already populated strategies tab by reading a prepared file?

    It's ok if the tactic is "unsupported".

    #2
    Hello roland_nt,

    Thanks for writing in to our Support team.

    Note that there is a way to accomplish this without writing a single line of code:
    • Right click in your Strategies tab
    • Select New Strategy...
    • Click on the Instrument(s) parameter and then on the down facing arrow that appears
    • Select Instrument List to apply this one strategy instance to an entire list of instruments.

    Otherwise, you would want to use a StreamReader in order to read or retrieve information from a .txt file. You could read the information from the .txt file, then assign values to your own variables from the .txt file and use these as your strategy parameter values. You can find a helpful sample script that goes over how to use a StreamReader to read price information from a .txt file here:
    http://ninjatrader.com/support/forum...ead.php?t=3476

    You would also use the StreamReader for the same purpose in NinjaTrader 8, and the manual method of adding a strategy to an instrument list is available to you as well.

    For NinjaTrader 8:
    • Right click in your Strategies tab and select New Strategy...
    • Find the Instrument parameter and click on the down facing arrow
    • Hover your mouse over one of your Instrument Lists and then select Select All

    Please let me know if I may be of any further assistance.
    Alan S.NinjaTrader Customer Service

    Comment


      #3
      load bulk strategies

      Thanks Allan.
      We'll see how far I can push this good starting idea.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by junkone, Today, 11:37 AM
      2 responses
      12 views
      0 likes
      Last Post junkone
      by junkone
       
      Started by frankthearm, Yesterday, 09:08 AM
      12 responses
      43 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by quantismo, 04-17-2024, 05:13 PM
      5 responses
      35 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by proptrade13, Today, 11:06 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by love2code2trade, 04-17-2024, 01:45 PM
      4 responses
      35 views
      0 likes
      Last Post love2code2trade  
      Working...
      X