• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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().
    JoshNinjaTrader 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.
        JoshNinjaTrader 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.
            JoshNinjaTrader 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.
                Patrick H.NinjaTrader Customer Service

                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 Hanstanz, Today, 04:44 AM
                    0 responses
                    2 views
                    0 likes
                    Last Post Hanstanz  
                    Started by juniortut, Today, 04:38 AM
                    0 responses
                    1 view
                    0 likes
                    Last Post juniortut  
                    Started by rojiinko, Today, 03:58 AM
                    0 responses
                    1 view
                    0 likes
                    Last Post rojiinko  
                    Started by mreanuzlazx, Today, 01:30 AM
                    0 responses
                    1 view
                    0 likes
                    Last Post mreanuzlazx  
                    Started by xinepev, Today, 12:33 AM
                    0 responses
                    4 views
                    0 likes
                    Last Post xinepev
                    by xinepev
                     
                    Working...
                    X