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 WHICKED, Today, 12:45 PM
        2 responses
        16 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by GussJ, 03-04-2020, 03:11 PM
        15 responses
        3,272 views
        0 likes
        Last Post xiinteractive  
        Started by Tim-c, Today, 02:10 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Taddypole, Today, 02:47 PM
        0 responses
        2 views
        0 likes
        Last Post Taddypole  
        Started by chbruno, 04-24-2024, 04:10 PM
        4 responses
        51 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Working...
        X