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 at Price

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

    Buy at Price

    I set up a strategy in the strategy wizzard to buy a numver of shares at a specific price when that price is triggered,
    Why is it that sometimes it sells short in liew of buy?
    Thanks

    #2
    designer,

    Please show us screenshots of what you mean along with the code so we can determine what the behavior of your code should be.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Please see attachment
      Attached Files

      Comment


        #4
        And where does it sell short? Thank you.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          It sells short when it hits the BuyPrice I set.

          Comment


            #6
            Hi designer, can you hit "view code" in the strategy wizard for your strategy and then copy + paste that code here? It seems like you're running into some peculiar problem and the code could help us solve the issue.
            AustinNinjaTrader Customer Service

            Comment


              #7
              Please provide reproducible steps with the strategy. Thank you.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                Attached find code
                Attached Files

                Comment


                  #9
                  designer,

                  We do not have this Chandelier stop indicator and will need it to be able to test.

                  Please post a screenshot of where you see it placing a sell short order and then steps to reproduce this behavior. From what we see right now it is not possible to have a sell short from your code ever.
                  Josh P.NinjaTrader Customer Service

                  Comment


                    #10
                    I will try testing it again in my demo account and describe the behavior to you.
                    Thanks

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Richozzy38, Today, 01:06 PM
                    3 responses
                    14 views
                    0 likes
                    Last Post Richozzy38  
                    Started by ttrader23, Today, 09:04 AM
                    2 responses
                    10 views
                    0 likes
                    Last Post ttrader23  
                    Started by geotrades1, Today, 07:54 AM
                    10 responses
                    26 views
                    0 likes
                    Last Post NinjaTrader_BrandonH  
                    Started by ninza33, Yesterday, 12:31 PM
                    3 responses
                    16 views
                    0 likes
                    Last Post NinjaTrader_LuisH  
                    Started by patrickmlee007, Today, 09:33 AM
                    1 response
                    10 views
                    0 likes
                    Last Post NinjaTrader_LuisH  
                    Working...
                    X