Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLongStop problem

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

    EnterLongStop problem

    Hello,

    I am having a problem with EnterLongStop.

    By code I send a buy stop with the EnterLongStop sentence:
    Code:
     
    _order = EnterLongStop( BarsInProgress, true, _quantity, _stop, _signalName);
    where BarsInProgress = 0, _quantity = 1, _stop = 1063 and _signalName = space.

    First, the order is accepted. One moment later is cancelled.
    I attach images and the trace.




    One moment later, the order is cancelled ...






    Thanks
    Attached Files

    #2
    cls71,

    Can you add some Print()s into OnOrderUpdate() and try to track order states?
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hello Josh,

      here is the tracing ...




      Attached Files

      Comment


        #4
        cls71,

        Please provide full code. Thank you.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Thanks Josh,
          I have fixed the problem (the code had a error).
          Sorry for the wasted time.

          Best regards

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by TradeForge, 04-19-2024, 02:09 AM
          2 responses
          28 views
          0 likes
          Last Post TradeForge  
          Started by aprilfool, 12-03-2022, 03:01 PM
          3 responses
          327 views
          0 likes
          Last Post NinjaTrader_Adrian  
          Started by giulyko00, Today, 12:03 PM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by f.saeidi, Today, 12:14 PM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by AnnBarnes, Today, 12:17 PM
          1 response
          2 views
          0 likes
          Last Post NinjaTrader_Zachary  
          Working...
          X