• 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

TradeStation DLL -> NT7 ATM Stop Loss

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

    TradeStation DLL -> NT7 ATM Stop Loss

    Hello and thank you for your assistance in advance. Let me start by saying I understand the difference between order types and stop order types.

    With the ATM automation, as I understand it and have seen when an order is placed we can have a stop loss order entered based on the new order fill. Simple enough. The stop loss order has a default of 20 ticks limit. This can be overridden in the DOM and Chart by changing the "Use stop market for stop loss orders" to True. Again, fairly straight forward.

    My question is, if I initiate an order through a TradeStation link, how can I achieve this same handling of using stop market orders instead of stop limit orders?

    For example a long position may be initiated with:
    Code:
    Success = NTCommand("PLACE","Sim101","BUY",1,"MARKET",0,0,"GTC","",OrderID,"ScalperExitStrategies","ScalperATM");
    results in a Stop Limit order at the correct Election Price with the given default maximum Limit Price.

    Thanks

    #2
    Hi javamarket,

    For this you would use something like

    NTCommand("PLACE","Sim101","SELL",1,"STOP",0,1985. 5,"GTC",StopTargetOCO,OrderID,"","");

    Below is a link to the help guide which shows the different order types.
    http://www.ninjatrader.com/support/h...parameters.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello Chelsea,

      Thank you for your reply.

      Basis what you are providing as the approach you are indicating that TradeStation cannot avail itself of the ATM directly and I would have to ...

      Retrieve the fill price from NT, calculate a stop value, manually enter the stop order ... (I'm not sure why you have an OCO involved) .... and on any subsequent order entry relive the entire process, find and cancel any existing stops and reenter - the entire feature set of ATM essentially.

      If this is indeed the case it removes almost any value in the ATM functionality of NT for users such as myself preventing any consideration of purchase. I'm hopeful something has been missed here.

      Comment


        #4
        Hi javamarket,

        It will not be possible to change the stop to a stop market order when using a pre-made ATM Strategy.

        This is also true with NinjaScripts that call ATM Strategies.

        So in this case, you would just submit the protective order and use OCO to tie it to a profit target.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you for the confirmation of this unfortunate condition. It makes NT an non-starter for me unfortunately..

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Wingo, Today, 04:52 PM
          1 response
          9 views
          0 likes
          Last Post bltdavid  
          Started by Bionian, Today, 10:10 AM
          3 responses
          20 views
          0 likes
          Last Post Bionian
          by Bionian
           
          Started by D Trader, Today, 01:41 PM
          0 responses
          13 views
          0 likes
          Last Post D Trader  
          Started by rexmie888, Today, 04:00 AM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_ShawnB  
          Started by terminatorT1000, Today, 01:23 AM
          1 response
          17 views
          0 likes
          Last Post NinjaTrader_ShawnB  
          Working...
          X