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