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 zstheorist, Today, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        150 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        6 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        33 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        6 views
        0 likes
        Last Post tkaboris  
        Working...
        X