Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM Strategy

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

    ATM Strategy

    Hi.

    If I have a strategy that inputs orders into the ATM Strategy and I have Simulated Order selected in the DOM will the stop orders that are being submitted be Simulated Stops? If not is there code that I can write into my Strategy to make it submit Simulated Stops or Simulated Stop Limit orders into the ATM Strategy? Also, what is the difference between a Stop and a Stop Limit order coded in a strategy?

    In a separate question, not in reference to the Simulated Stop, what is the best way to make sure that the Stop order submitted by the strategy only fills at the exact price? I don't want a market order or any slippage. I would rather it just fail to submit if it can't fill at the exact price. Below is a sample of the code I am talking about with one being just a Stop and the second being a Stop Limit with the Limit set at the same:

    1. AtmStrategyCreate(Cbi.OrderAction.Buy, OrderType.Stop, 0, High[0]+ 5 *
    TickSize,TimeInForce.Day, orderId, "AtmStrategyTemplate", atmStrategyId);

    2. AtmStrategyCreate(Cbi.OrderAction.Buy, OrderType.Stop, High[0]+ 5 *
    TickSize, High[0]+ 5 * TickSize,TimeInForce.Day, orderId, "AtmStrategyTemplate", atmStrategyId);

    I hope I am making sense. Thanks for your help.

    #2
    Hello cre8it8,

    Stop loss orders for ATM can be simulated when you set a volume trigger. This is part of the stop strategy settings. Stop strategy settings are included with a specific ATM strategy template. When your strategy calls the ATM strategy these orders should then be simulated. You can set the volume trigger by changing stop strategy from none to custom. More information on simulated stops is here:


    If you would like to be filled only at the specified price or better, then stop limit orders are what you are looking for.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks for getting back to me. I understand what you are saying about the Volume Trigger and I tested it out and it works great for the Stop Loss. The other thing that I want to know is how I can get my strategy to submit an order like if you submit an order with Simulated Stop selected on on the DOM and you manually center click the mouse and it puts in a SLM in the yellow Initialized status as apposed to the light blue Accepted status.

      Also, thanks for the data you gave me on the regular SLM.
      Last edited by cre8it8; 08-16-2010, 07:26 PM.

      Comment


        #4
        Hi cre8it8,

        Unfortunately there's no way to set this from your NinjaScript automated strategy. Using the volume trigger for a stop strategy is the only way to submit a simulated order when using NS w/ ATM

        You may consider the SetStopLoss() statements as well, which offer a simulated property you can set programatically.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Thanks for the data. I will look into them.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          579 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X