Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using TradeStation dll to send orders

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

    Using TradeStation dll to send orders

    I am using TradeStation to send orders to ninja.
    First I would like to know if i can send entry orders and then have Ninja use an ATM strat to exit the trade. I can see the entry price on the DOM but it does not look like the ATM strategy picks up the entry. Does the ATM used in the DOM trader only work with orders entered by hand?

    Second if i do have to handle the entry and exits in TradeStation does anyone have any good ideas for tracking the orders. I will use NTMarketPosition to get Ninja position but I am limited to checking at end of bar( I am using P&F charts).I will build the order interface on tick chart if i have to. Just checking to see if there is an easier way.
    Thanks
    QD

    #2
    Hi quantdeveloper,

    Using the NTCommand() you can pass in the parameter for "strategy" which would be the ATM strategy name.

    More info at - http://www.ninjatrader-support.com/H...html?Functions
    TimNinjaTrader Customer Service

    Comment


      #3
      I am sending an order for 2 contracts and have 1 stop and 2 targets. I am calling a ninja "ATM" to handel the stops and targets. I am using the following code to handel stop and reverse trades

      if NTMarketPosition("") = 2
      then begin
      NT_size=(4);
      end;
      if NTMarketPosition("") = 1
      then begin
      NT_size=(3);
      end;
      if NTMarketPosition("") = 0
      then begin
      NT_size=Position_size;
      end;

      the question is can ninja cancel the targets and stops from a buy if i reverse into a sell
      or do i need to do it from tradestation with a cancel dll

      Comment


        #4
        Hi quantdeveloper,

        You can use the NTCommand() to cancel the order as well, then resubmit if necessary.
        TimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        3 responses
        23 views
        0 likes
        Last Post cmtjoancolmenero  
        Started by Brevo, Today, 01:45 AM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by rjbtrade1, 11-30-2023, 04:38 PM
        2 responses
        72 views
        0 likes
        Last Post DavidHP
        by DavidHP
         
        Started by suroot, 04-10-2017, 02:18 AM
        5 responses
        3,021 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Stanfillirenfro, Today, 07:23 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X