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

Orders not coming through

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

    Orders not coming through

    I am trying to understand why my orders are not getting filled.
    At the start of my strategy I have a certain condition:

    int moreContracts = 3;

    if(A == 1)
    {
    EnterLong(1);
    }

    and it works just fine at real time... along the code, if that condition change and A == 3 (for instance), I would like to add more contracts using the variable moreContracts declared above:

    if(A == 3)
    {
    EnterLong(moreContracts);
    }

    The problem is that when it tries to buy more contracts, I get an error on the order fill.
    I get the message attached to this post.
    I already renamed the DB file to OLDNinjatrader.sdf, so the system would generate a new one, but I still get the same error.

    All I want to do is buy more contracts when a certain condition change, how do I do that?

    Thanks a lot.


    Attached Files

    #2
    Hello Eddie De Meira,

    Thank you for the post.

    From the details I couldn't say what may be happening here. Do you have any other logic which may change orders or trail?

    The error indicates a change order, submitting a new entry should not trigger a change order but a new execution. If you can provide more details about your script that may help to see what is happening.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hi Jesse,
      thank you so much for getting in touch

      Actually, there is no other logic that would be changing the orders, at least, not that I could see... One other interesting thing, is that it works on the Strategy Analyzer or using the SIM account.
      I changed my strategy to compensate for this problem and it seems to be working even better now... let me try for this week and if I still have problems, I will get in touch again.

      Thanks a lot Jesse.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Haiasi, 04-25-2024, 06:53 PM
      2 responses
      16 views
      0 likes
      Last Post Massinisa  
      Started by Creamers, Today, 05:32 AM
      0 responses
      4 views
      0 likes
      Last Post Creamers  
      Started by Segwin, 05-07-2018, 02:15 PM
      12 responses
      1,786 views
      0 likes
      Last Post Leafcutter  
      Started by poplagelu, Today, 05:00 AM
      0 responses
      3 views
      0 likes
      Last Post poplagelu  
      Started by fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,407 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Working...
      X