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 hazylizard, Today, 08:38 AM
                    3 responses
                    10 views
                    0 likes
                    Last Post NinjaTrader_Erick  
                    Started by geddyisodin, Today, 05:20 AM
                    2 responses
                    18 views
                    0 likes
                    Last Post geddyisodin  
                    Started by Max238, Today, 01:28 AM
                    5 responses
                    47 views
                    0 likes
                    Last Post Max238
                    by Max238
                     
                    Started by giulyko00, Yesterday, 12:03 PM
                    3 responses
                    13 views
                    0 likes
                    Last Post NinjaTrader_BrandonH  
                    Started by habeebft, Today, 07:27 AM
                    1 response
                    16 views
                    0 likes
                    Last Post NinjaTrader_ChristopherS  
                    Working...
                    X