Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Questions for NT!

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

    Questions for NT!

    Hi, I am new , a few pointed questions.

    1) Can NT automatic Strategy allow entrance with a OCO bracket order for a breakout strategy?
    From what I am reading in it won't be able to? Is that correct?

    2) I have code that I don't see easily transfered over. I can recreate much of the automated system however I need help in knowing how to create a limit order exit strategy that takes the activation bar, subtracts the high - low and then times it by a number that I can optimize. What support can you offer for this?

    3) 2) When does the exit orders get activated in automatic trading? Is the exit stop and limit target placed after the first closed bar of the the entrance fill or do they get activated simultaneously with getting filled to enter the market?

    #2
    1. You won't be able to place opposite entry orders simultaneously.

    2. You should calculate the (High - Low) * someNumber and store that into a variable. Then you can use ExitLongLimit() and call that limit price.

    3. Depends how you have programmed your strategy. If you are using Set() methods they will go in immediately after you get filled. If you are using Exit() it can also go in immediately if you have it programmed in OnOrderUpdate()/OnExecution().
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks,

      Is programming 2 independent strategies possible, one completely long using a stop limit entrance and then another completely short strategy using a breakdown strategy and stop limit entrance an alternative way to make question one happen? Combining the strategies with a clause that says if short, don't go long vice versa as well. Would this trick the strategy into a sort of OCO type strategy as a work around? Is it still not possible


      2) when programming a candlestick indicator this error message:Metadata file 'C:\Users\Leviz\Documents\NinjaTrader 6.5\bin\Custom\Indicator\LRHarrami.dll' could not be found CS0006 - click for info 0 0
      Any help?

      3) What snippet, (may not be the correct term) is used to refer to the bar of trade activation in doing my calculations? Would this need to be done first as an indicator in order for me to use it in my strategy for my enhanced limit order?

      Comment


        #4
        Two independent strategies should do it, for one strategy, please review the 'Internal Order Entry Rules' listed here -



        For NinjaTrader 7, we'll offer a new unmanaged order submission feature that gives you more flexibility in this process -



        New Unmanaged Order Submission
        In 6.5 some users were burdened with our "Internal Order Handling" rules. We have introduced unmanaged order submission which bypasses the convenience of our order handling layer. This lower level of programming allows you to do what you want relative to order submission/management without any limitations other than any imposed by your broker. There are only three methods, SubmitOrder(), ChangeOrder() and CancelOrder(). You then get the flexibility of managing your orders how you see fit and optionally handling rejections.


        2. This normally means a reference to a DLL was not found, right click in the indicator and add the proper reference back.

        3. I'm not sure I follow you here, for checking if you have a position open just use Position.MarketPosition - http://www.ninjatrader-support.com/H...tPosition.html

        If you need the barnumber of your entry, just save this to a variable upon entry (marketposition change to long / short).

        Comment


          #5
          Thank you, That answers question 1.

          Since I am learning programming would you please use laymans terms after using a programming term or word so I can get up to speed.

          For your answer on question 2 I need some more help. I created a simple candlestick like the one doji example in the help files. My indicator however is a bar that was engulfed by the prior bars highs and lows. I left all of the other steps the same as the doji example in the help files but changed the code to what I think is what i want. Plot0.Set(High[1]>High[0]&&Low[1]<Low[0]?1:0); Then I hit F5 however I get an error message. I don't know how to do waht you said. I know how to right click. I dont' know where to point it to. I have tried building this indicator a few times. THe doji example I could recreate however I get that error for mine. What is the right reference to add back when I right click and where do I right click. It references column 0 row 0?

          Comment


            #6
            Question 3 I think you are giving the right answer. How do I do that? I want to reference the bar when my automated system said go long, not necessarily the bar after when It got filled. I want the bar when trade activated to base a new indicator that I use multiplication addition and subtraction of that bar. I want to do this in an indicator before I do the strategy builder again as to have an exit order based on the values of that entrance bar.
            I assume it is correct to first build and indicator of this sort before trying to use it in a Strategy exit rule?

            Comment


              #7
              Allterraintrader, you're welcome for the indicator it would help to see the code your using fully to advise, I'm not sure why it attempts to reference a DLL, do you have any third party indicators installed recently?

              You just save the current bar number of your chart to a variable if your condition for trade entry is true, for example -

              Code:
               
              int myBarCount;
              
              if (Close[0] > Close[10] && Volume[0] > Volume[10])
              myBarCount = CurrentBar;

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              649 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              370 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              109 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              573 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              576 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X