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 jclose, Today, 09:37 PM
        0 responses
        6 views
        0 likes
        Last Post jclose
        by jclose
         
        Started by WeyldFalcon, 08-07-2020, 06:13 AM
        10 responses
        1,414 views
        0 likes
        Last Post Traderontheroad  
        Started by firefoxforum12, Today, 08:53 PM
        0 responses
        11 views
        0 likes
        Last Post firefoxforum12  
        Started by stafe, Today, 08:34 PM
        0 responses
        11 views
        0 likes
        Last Post stafe
        by stafe
         
        Started by sastrades, 01-31-2024, 10:19 PM
        11 responses
        169 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X