• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 ahadari28, Today, 04:01 PM
        0 responses
        1 view
        0 likes
        Last Post ahadari28  
        Started by TazoTodua, Today, 06:00 AM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by TazoTodua, Today, 09:06 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by gbux11, Today, 02:36 AM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by NinjaCustomer, 05-09-2019, 08:54 AM
        4 responses
        68 views
        0 likes
        Last Post Harry
        by Harry
         
        Working...
        X