Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Automated Order doesn't execute

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

    Automated Order doesn't execute

    Hi

    I'm implementing an automated system with eSignal, Ninja & IB but whenever a trade is triggered and sent to Ninja, it is received by Ninja but not executed. (The strategy references a Strategy Template in Ninja called "FDAX"). The Ninja Log file says "processing" and stops there....

    Here's an excerpt of the relevant code:

    if ( NTConnected() && NTMarketPosition("") == 0 && isLastBarOnChart() && !orderPlaced)
    {
    orderID = NTNewOrderId();
    NTStrategies("Sim101");
    orderPlaced=True;
    NTCommand("Place","","FDAX 06-06", "Buy",3,"Market",0 ,0 ,"","",orderID,"FDAX","");

    Thanks for pointing me in the right direction

    #2
    imported post

    Laocoon,

    Did you follow my instructions in the private email I sent you yesterday? Step by step debug?

    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      Also, NTConnected() needs to be set to a parameter, see the sample provided in the Help Guide.
      RayNinjaTrader Customer Service

      Comment


        #4
        imported post

        Ray,

        I spent the whole evening debugging and I managed to make it work using the NTSample.efs file but it still isn't working in my own code.

        For the FDAX, the correct way to do it is (as you hinted) to insert "FDAX 06-06" into the NTCommand function.

        I'm still working on my own code trying to make it work.

        Thanks

        Comment


          #5
          imported post

          Great.

          Ammened the NTSample step by step, add one piece at a time and see where it breaks.

          Ray
          RayNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,610 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          9 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          19 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          6 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          21 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X