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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          67 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          150 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          162 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          99 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          286 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X