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

Strategy condition question

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

    Strategy condition question

    Hi, was hoping someone could help with a quick query I have. I have a short only strategy that I have, it's very simple and I'm happy with it. I used strategy builder for it. It executes short positions on the daily chart. I wanted to test something new out...for the strategy to only execute short positions on the daily if the weekly ALSO confirms. I could do this manually on two seperate charts and execute manually but would like to do it this way (for backtest purposes too). Is there an easy way around this? Thanks in advance to anyone who can help.

    #2
    Hello adams016,
    Thanks for your post.

    You would need to add a "Week" series to your script to check that value. Once you add the series you can set it as the Input series for any price/indicator comparison.

    Here are some samples of common conditions you may want to create in the Strategy Builder: https://ninjatrader.com/support/help...on_builder.htm

    Please let me know if you have any questions.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Thanks Josh. Can it all be done in strategy builder or is any coding required in script?

      Comment


        #4
        adams016,

        You would be able to add a "Week" series in the Strategy Builder from the "Additional Data" screen


        As far as unlocking the script, that would depend on your logic. If you are simply comparing indicator or price values of the additional data series I would expect to be able to accomplish this from within the Strategy Builder.



        Josh G.NinjaTrader Customer Service

        Comment


          #5
          Thanks mate, got this working nicely!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by haas88, 03-21-2024, 02:22 AM
          18 responses
          207 views
          0 likes
          Last Post haas88
          by haas88
           
          Started by Board game geek, Today, 02:20 AM
          0 responses
          1 view
          0 likes
          Last Post Board game geek  
          Started by knighty6508, Today, 01:20 AM
          2 responses
          13 views
          0 likes
          Last Post knighty6508  
          Started by franatas, Today, 01:53 AM
          0 responses
          2 views
          0 likes
          Last Post franatas  
          Started by knighty6508, Today, 01:17 AM
          0 responses
          9 views
          0 likes
          Last Post knighty6508  
          Working...
          X