Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Apply Strategy on all data series

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

    Apply Strategy on all data series

    Hi , I have a dataseries with about 500 instruments. I have a strategy for buy and sell. I want to run them on all the 500 stocks and get a result of which one to buy and which one to sell on a daily basis. Is it possible to do it ?

    #2
    Hello chinmaya122,

    Loading a list of instruments in a script, analyzing with calculations, and then placing orders is possible.

    This would require that your script load all 500 instruments using the Add() call.

    This is possible to do but will require that your data provider support 500 simultaneous connections and that your computer has the resources to stream historical and live data for 500 instruments.

    Below is a link to the help guide on the Add call.
    http://ninjatrader.com/support/helpGuides/nt7/add3.htm


    An alternative method, would be to create an indicator that has certain criteria and then the criteria is met, the instrument symbol is written to a file. The indicator would be added to a Market Analyzer column that has the 500 instruments loaded. Then after all 500 instruments are analyzed, the file will contain all symbols that met the criteria. The strategy would then be enabled and would read that file and add each instrument in the file.
    StreamWriter example - http://ninjatrader.com/support/forum...ead.php?t=3475
    StreamReader example - http://ninjatrader.com/support/forum...ead.php?t=3476
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rjbtrade1, 11-30-2023, 04:38 PM
    2 responses
    75 views
    0 likes
    Last Post DavidHP
    by DavidHP
     
    Started by Stanfillirenfro, Today, 07:23 AM
    3 responses
    12 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by FitSpressoHonest, Today, 09:14 AM
    0 responses
    1 view
    0 likes
    Last Post FitSpressoHonest  
    Started by Davide999, 05-18-2023, 03:55 AM
    4 responses
    557 views
    1 like
    Last Post kcwasher  
    Started by rexsole, Today, 08:39 AM
    2 responses
    7 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X