Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Moving a Ninja ATM stop from within a Tradestation strategy

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

    #16
    Apologies Dierk, I meant my previous message . The command I am using according to the documentation you posted is correct, please see my comments re: the NTCommand and the Ninja log output.

    thanks

    Kevin.

    Comment


      #17
      The doc reference you posted in incorrect: there is no "instrument" parameter in the TS NTCommand.

      In order to custom set an instrument (and not go with the standard one of chart) you would need to take a look at the NTCommend EasyLanguage implementation:

      { Copyright (c) 2005, NinjaTrader LLC [email protected] }
      DefineDLLFunc: "NtDirect.dll", int, "Command", lpstr, lpstr, lpstr, lpstr, int, lpstr, double, double, lpstr, lpstr, lpstr, lpstr, lpstr;

      inputs: Cmd(string), Account(string), Action(string), Quantity(numericsimple),
      OrderType(string), LimitPrice(numericsimple), StopPrice(numericsimple), TimeInForce(string), Oco(string),
      OrderId(string), Template(string), Strategy(string);

      NTCommand = Command(Cmd, Account, GetSymbolName, Action, Quantity, OrderType, LimitPrice, StopPrice, TimeInForce, Oco,
      OrderId, Template, Strategy);

      Basically, "Command" is the DLL method you would need to use. However, this is beyond of what we support, you would need to try by yourself.

      Comment


        #18
        Strategy generated orders not appering in the DOM.

        Hi, I finished my strategyanditworkedvery well. However since I updated to thelatest version ofNinja 6.5.0.10(Live) my strategy generatedordersnolongerappearin the DOME eventhough I can see them appear asactive orders at the correctprice for the correct symbol and account in the orders window?

        Please advise.

        Thanks

        Kevin.

        Comment


          #19
          Likely your DOM is not set to the account that the orders have been submitted to.
          RayNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          115 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          161 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          83 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          127 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          87 views
          0 likes
          Last Post PaulMohn  
          Working...
          X