Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Not sending orders on CL Feb09

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

    Not sending orders on CL Feb09

    I have a strategy that is running fine on NG Feb09 and when I backtest it on CL Feb09 it shows that it would've placed several orders between when I turned it on and now. It however is not placing any orders on CL.

    I have my settings set to wait until flat to submit orders, and I've confirmed that in the backtest there has been several hours since I turned the strategy on that the position was flat. My account position is also flat.

    Looking in the logs I'm seeing the following weird thing though

    Instrument='CL 01-09' Account='Sim101' Avg price=50.34 Quantity=5 Market position=Short

    I'm running my strategy live and I've confirmed it's running on my actual account not Sim101. Is it possible that it is waiting for CL 01-09 Sim101 to be flat? I show no position for it in my positions tab and CL 01-09 is not even trading anymore.

    Any ideas on if this Sim position could be stopping me from executing and if not...any other ideas?

    Shiptastic

    #2
    If you are linking the strategy to real-time it shouldn't be doing anything on the Sim101. You could try resetting your Sim101 account to eliminate any potential causes from there. Tools->Options->Simulator->Reset.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      alrighty I tried resetting..we'll see if it goes in after the next flat period.

      Comment


        #4
        shiptastic,

        The script needs to be flat as defined by the script. If the script still thinks it has a virtual position it will not trade and this will require debugging to understand its behavior.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Figured out the problem. I wasn't aware of the Reset DB ability in the options. Interestingly, in my "Position" tab I showed no position, but after looking through the list of executions on the last Crude execution it did not show a value of flat. After resetting the db everything worked.

          Thanks,

          Shiptastic

          Comment


            #6
            Great! Glad you got it resolved.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by aussugardefender, Today, 01:07 AM
            0 responses
            3 views
            0 likes
            Last Post aussugardefender  
            Started by pvincent, 06-23-2022, 12:53 PM
            14 responses
            238 views
            0 likes
            Last Post Nyman
            by Nyman
             
            Started by TraderG23, 12-08-2023, 07:56 AM
            9 responses
            384 views
            1 like
            Last Post Gavini
            by Gavini
             
            Started by oviejo, Today, 12:28 AM
            0 responses
            4 views
            0 likes
            Last Post oviejo
            by oviejo
             
            Started by pechtri, 06-22-2023, 02:31 AM
            10 responses
            125 views
            0 likes
            Last Post Leeroy_Jenkins  
            Working...
            X