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 DayTradingDEMON, Today, 09:28 AM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by cmtjoancolmenero, Yesterday, 03:58 PM
          8 responses
          31 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by helpwanted, Today, 03:06 AM
          2 responses
          21 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by navyguy06, Today, 09:28 AM
          0 responses
          4 views
          0 likes
          Last Post navyguy06  
          Started by rjbtrade1, 11-30-2023, 04:38 PM
          2 responses
          77 views
          0 likes
          Last Post DavidHP
          by DavidHP
           
          Working...
          X