Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

I copied this out of the NT manual and put it into Tradestation.

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

    I copied this out of the NT manual and put it into Tradestation.

    I copied this out of the NT manual and put it into Tradestation. When I try to verify, I get an error. Any ideas?

    { 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);

    #2
    The NinjaScript would not work in TradeStation as it is not in Easy Language.
    JessicaNinjaTrader Customer Service

    Comment


      #3
      Jessica, thank you for the prompt reply, but this code was cut and pasted from the NT pdf where it says sample code for Tradestation, and it did not compile.

      Comment


        #4
        I suspect you are referring to that sample no: http://www.ninjatrader-support.com/H...ampleCode.html

        This sample will work as you create a TS EL function (NOT strategy) with it NTCommand, copy the code and verify.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        102 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        144 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        71 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X