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 chbruno, Today, 04:10 PM
          0 responses
          1 view
          0 likes
          Last Post chbruno
          by chbruno
           
          Started by josh18955, 03-25-2023, 11:16 AM
          6 responses
          436 views
          0 likes
          Last Post Delerium  
          Started by FAQtrader, Today, 03:35 PM
          0 responses
          6 views
          0 likes
          Last Post FAQtrader  
          Started by rocketman7, Today, 09:41 AM
          5 responses
          19 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by frslvr, 04-11-2024, 07:26 AM
          9 responses
          127 views
          1 like
          Last Post caryc123  
          Working...
          X