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 MarianApalaghiei, Today, 10:49 PM
                1 response
                8 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by love2code2trade, Yesterday, 01:45 PM
                4 responses
                28 views
                0 likes
                Last Post love2code2trade  
                Started by funk10101, Today, 09:43 PM
                0 responses
                8 views
                0 likes
                Last Post funk10101  
                Started by pkefal, 04-11-2024, 07:39 AM
                11 responses
                37 views
                0 likes
                Last Post jeronymite  
                Started by bill2023, Yesterday, 08:51 AM
                8 responses
                46 views
                0 likes
                Last Post bill2023  
                Working...
                X