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

Buy / Sell Stop

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

    Buy / Sell Stop

    I do not have any positions, so i am flat.

    I am trying to place a Buy or Sell Stop order by using the AtmStrategyCreate and i keep getting an error.
    Not sure why.
    I am able to use the EnterLongStopLimit and place the order fine, but when i use the AtmStrategyCreate call, the order does not get placed.

    Any idea's?

    Thanks!
    B

    #2
    Please see the SampleAtmStrategy preinstalled with your NinjaTrader for how to use AtmStrategyCreate().
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I have used the AtmStrategyCreate with Buy and Sell without issue.

      Its when I use it with BuyStop or SellStop is when the error occurs.

      string OrderId = GetAtmStrategyUniqueId();
      string atmOrderId = GetAtmStrategyUniqueId();

      AtmStrategyCreate(Action.Buy,OrderType.StopLimit,O pen[0]+ 1* TickSize, 0, TimeInForce.Day, OrderId,"68NBuyRedOpen", atmOrderId);

      I have tried both Buy, OrderType.StopLimit and OrderType.Stop.

      Comment


        #4
        Likely because you are submitting an order with a stop value of 0. Please put in a valid stop price.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          I will try it. But has will the Stop and Profit targets of the ATM strategy have precedence?

          B

          Comment


            #6
            Not sure what you mean. You cannot mix ATM strategies with regular NinjaScript order management.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              buy/sell stop orders issues

              I usually place Buy/Sell Stop orders directly on the chart by right clicking and selecting it. I want to do the same on the DOME and the only options I get is buy/sell stop limit when I middle mouse click, or buy/sell limit orders when right clicking on the DOME. How can I just use the buy/sell stop only without any limits on the DOME?

              Comment


                #8
                Hello vlad546,

                Thank you for your post.

                Right click in your SuperDOM > select Properties > set the Middle Mouse Button Is Stop Market to True > then Set Default > then OK. Now Middle Mouse is Stop Market and CTRL+Middle Mouse is Stop Limit.

                For information on the SuperDOM properties please visit the following link: http://www.ninjatrader.com/support/h...properties.htm

                Please let me know if I may be of further assistance.

                Comment


                  #9
                  Can buy/sell stop be right click instead of center button?

                  Comment


                    #10
                    Hello vlad546,

                    The center button is required when using the SuperDOM however it would be possible to submit any kind of order via Chart Trader using a right click.
                    KyleNinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Haiasi, 04-25-2024, 06:53 PM
                    4 responses
                    55 views
                    0 likes
                    Last Post effraenk  
                    Started by ccbiasi, 11-23-2017, 06:06 AM
                    5 responses
                    2,199 views
                    0 likes
                    Last Post leodavis  
                    Started by kujista, Yesterday, 12:39 AM
                    2 responses
                    14 views
                    0 likes
                    Last Post kujista
                    by kujista
                     
                    Started by Austiner87, Yesterday, 11:24 AM
                    2 responses
                    12 views
                    0 likes
                    Last Post brucerobinson  
                    Started by Rogers101, 05-05-2024, 11:30 AM
                    3 responses
                    21 views
                    0 likes
                    Last Post Rogers101  
                    Working...
                    X