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

Print the current stop order

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

    #16
    It should not expire then, but might not get picked up as you have not tied to any entry name with the emtpy strings provided.
    BertrandNinjaTrader Customer Service

    Comment


      #17
      What would be the standard entry name used as I have not set one I don't think?

      Comment


        #18
        You would need to check in your Enter() method call what you have actually used as name then.
        BertrandNinjaTrader Customer Service

        Comment


          #19
          For the enter method I have used the following:

          EnterLongStop(DefaultQuantity, High[0]);

          The trace for this order is as follows
          30/03/2012 5:00:00 AM Entered internal PlaceOrder() method at 30/03/2012 5:00:00 AM: BarsInProgress=0 Action=Buy OrderType=Stop Quantity=100 LimitPrice=0 StopPrice=1.0404 SignalName='' FromEntrySignal=''

          Comment


            #20
            Yes, then you would not have spec'ed any entry name to use. The stop order placed reflects that in its message, that's the regular trace print you would get for a working order.
            BertrandNinjaTrader Customer Service

            Comment


              #21
              that is the EnterLongStop.
              I am having issues with the ExitLongStop

              Currently I have tried this which doesn't seem to be working. Apologies for the stupidity but I do not know where to find out what name has been used is in the Enter

              ExitLongStop(0,true,DefaultQuantity,Close[0] - (.5*StopDistance ),"FromEntrySignal","");

              Comment


                #22
                No worries, the call from post 15 should correct then, as you do not specify any name to use. Would you mind sending me your script to support at ninjatrader dot com so it could be given a run on our end?
                BertrandNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Gerik, Today, 09:40 AM
                1 response
                6 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by RookieTrader, Today, 09:37 AM
                1 response
                10 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by alifarahani, Today, 09:40 AM
                0 responses
                5 views
                0 likes
                Last Post alifarahani  
                Started by KennyK, 05-29-2017, 02:02 AM
                3 responses
                1,284 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Started by AttiM, 02-14-2024, 05:20 PM
                11 responses
                186 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Working...
                X