• 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

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 nedstrader, Today, 01:01 PM
    0 responses
    1 view
    0 likes
    Last Post nedstrader  
    Started by RolloHarper, Today, 12:59 PM
    0 responses
    3 views
    0 likes
    Last Post RolloHarper  
    Started by Aporshnev, Today, 11:11 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by bc90803, Today, 11:24 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Heath  
    Started by hincal, Today, 10:07 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_RyanS  
    Working...
    X