Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Screening NinjaScript Automated Strategy

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

    Screening NinjaScript Automated Strategy

    We are regularly applying an Automated Strategy on a specific instrument Chart , to take some trading actions on that instrument when certain conditions are met.

    My question is if it's possible to create and apply an Automated Strategy on an instruments List to choose among them, those meeting some certain conditions.

    This would be the 1st step: Screening procedure.
    The 2nd step would be the usual Trading procedure, to take some trading actions on those automatically chosen instruments.

    For example, I want to apply that Strategy on 500 instruments, to find out 10 that meet the criteria , and then to trade those 10 instruments.

    Is this possible within NinjaTrader and using NinjaScript ?
    Last edited by KonstantinosNT; 03-23-2023, 03:34 AM.

    #2
    Hello KonstantinosNT,

    Thank you for your post.

    What you have described should be possible using NinjaScript. What you could do is set up your strategy logic so that it checks for the screening criteria before allowing any logic that generates trades. If the strategy logic finds that the instrument does not meet the criteria, then it could call the CloseStrategy() method to disable itself:


    If the criteria are met, however, the strategy logic could move on to the desired trading actions. As for running the strategy on multiple instruments, this may be done on the Strategies tab of the Control Center using an Instrument list. What I suggest is to create an instrument list with your desired instruments first:


    Next, from the Strategies tab of the Control Center do the following:
    • Right-click the Strategies tab and select New Strategy
    • Select the desired strategy and properties
    • In the "Data Series" section, open the Instrument dropdown menu
      • Hover your mouse over the desired instrument list, then click "Select All"
    • Click OK to save and generate your strategies
    Please let us know if we may be of further assistance.
    Emily C.NinjaTrader Customer Service

    Comment


      #3
      Thank you Emily. Your answer is helpful.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      3 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      18 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      1 view
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      6 views
      0 likes
      Last Post Javierw.ok  
      Started by timmbbo, Today, 08:59 AM
      2 responses
      10 views
      0 likes
      Last Post bltdavid  
      Working...
      X