Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Umanaged Order Issues in Real Time

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

    Umanaged Order Issues in Real Time

    I am running a system in sim mode(Sim101) on Top Step Trader. The system runs as it is supposed to in backtesting only. However in realtime strange things are happening.

    In the onbarupdate event, if the marketposition is flat, I submit a limit order to sell above the market and a buy limit below the market. The levels change on each bar. If there is an existing by and sell limit (i.e the order is not null), I cancel the existing order and resubmit the order. Sometimes the orders just get cancelled. This also is true when I enter a stoploss using the OnExecution even handler. Sometimes the stops don't get entered and I am sitting there with an exposed position

    1. What I see happening is that sometimes the order is just cancelled in real time and a new order is not submitted. What I see in the output window (I have trace orders enabled) is that the cancel is pending. Should I be using the change order method rather than just cancelling and resubmitting on each bar?

    2. Should I be using a different event to change or cancel and replace the orders?

    3. Is this a problem with TopStepTrader's simulation engine in that cancels are not confirmed and I need to find another way to handle changing the order?

    4. Could I accomplish the same type of strategy by using managed orders in that one strategy would be for a long only ATS and the other for short only ATS and run the 2 strategies at the same time?

    Thank you,

    Cowpux

    #2
    Hello Cowpux,

    Thank you for your post.

    You could just use the ChangeOrder() method rather than cancelling and submitting again. I am not aware of any issues with the simulation engine for Top Step. Are you trying to go long and short at the same time? If so, using the Managed approach in two strategies where one is log and one is short will work.

    Comment


      #3
      Thank you for the quick reply Patrick,

      Lets just say I want a sell order and a buy order working at the same time. There is no chance that a long and short order could ever be filled at the same price as they are at different levels. Maybe I will try this instead of banging my head against the wall with the unmanaged approach. I think the unmamanged apporach is getting hung up when a cancel is not confirmed for whatever reason. In backtesting it works fine.

      1. Is it possible our feed is disconnecting or is there a work around cancels not getting confirmed? How can we find out of our feed is going down for short periods?

      Cowpux

      Comment


        #4
        Hello Cowpux,

        Please send me your log and trace files for today so that I may look into what occurred. You can do this by going to the Control Center-> Help-> Mail to Platform Support.

        Please place this thread in the subject line: "http://www.ninjatrader.com/support/forum/showthread.php?t=71487"

        Comment


          #5
          Patrick I got a failed to send mail popup message. Where do I find the log and trace files so I can upload them to this forum?

          Thank you,

          Cowpux.

          Comment


            #6
            Hello Cowpux,

            Thank you for your response.

            Please manually attach your most current log and trace files to an e-mail to platformsupport[at]ninjatrader[dot]com, so I may investigate this matter further.

            You will find the log file on your PC in the (My) Documents > NinjaTrader 7 > Log folder.
            • The log file will be named "log.20150121.txt"

            You will find the trace file on your PC in the (My) Documents > NinjaTrader 7 > Trace folder.
            • The trace file will be named "trace.20150121.txt"

            Please place this thread in the subject line: "http://www.ninjatrader.com/support/forum/showthread.php?t=71487"

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            576 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            334 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            553 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            551 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X