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 yertle, Yesterday, 08:38 AM
        7 responses
        28 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by bmartz, 03-12-2024, 06:12 AM
        2 responses
        20 views
        0 likes
        Last Post bmartz
        by bmartz
         
        Started by funk10101, Today, 12:02 AM
        0 responses
        4 views
        0 likes
        Last Post funk10101  
        Started by gravdigaz6, Yesterday, 11:40 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by MarianApalaghiei, Yesterday, 10:49 PM
        3 responses
        10 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X