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 NullPointStrategies, Today, 05:17 AM
          0 responses
          50 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          126 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          69 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          42 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X