Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM OrderAction

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

    ATM OrderAction

    Hi,

    How can I get ATM OrderAction in my strategy.

    Thanks,
    T

    #2
    Hello,

    Thank you for your post.

    You can use ATM Strategies from your strategy using the ATM Strategy commands.
    Below is a link to the help guide on AtmStrategyCreate(). On the left will be the other ATM Strategy commands.
    http://www.ninjatrader.com/support/h...tegycreate.htm

    Included with NinjaTrader is a sample that demonstrates this called SampleAtmStrategy.
    To view the code from the sample:
    • Click Tools -> Edit NinjaScript -> Strategy...
    • Select SampleAtmStrategy -> click OK
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks for your information ChelseaB.
      Sorry my question made you misunderstand. I know that information. My questions as below,

      Q1:If I use AtmStrategyCreate(), how to write code for get this order?
      ( IOrder myOrder=getOrderByATMStrategyID(...); something like that.how to write it?)

      Q2: If I place multiple ATM orders,how can I get my ATM order action by ATMStrategyID?
      OrderAction.Buy,
      OrderAction.BuyToCover
      OrderAction.Sell
      OrderAction.SellShort

      Thanks,
      T
      Last edited by thomson; 02-06-2014, 08:10 AM.

      Comment


        #4
        Hi thomson,

        Thanks for clarifying.

        Once you have chosen to use the Atm Strategy commands you will need to continue using those.

        You will not be able to use an IOrder object to store the orders as the Atm Strategy commands will not return one.

        It is possible to check the status of orders using Atm Strategy commands.
        Below is a link to the help guide on the ATM Strategy Methods. Please take a look at each subsection (command) in this section.
        http://www.ninjatrader.com/support/h...gy_methods.htm

        Using GetAtmStrategyEntryOrderStatus() you can find out about the status of your order.
        http://www.ninjatrader.com/support/h...rderstatus.htm

        Also, please take a look at the SampleAtmStrategy that is included with NinjaTrader.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Do you mean I can Not get ATM OrderAction(buy,sell..)? I only can get ATM OrderStatus( Filled, working,...)

          Thanks,
          T

          Comment


            #6
            Hello thomson,

            That is correct, you will not be able to find the order type when using Atm Strategy commands.

            You are able to track the orders and the position using Atm Strategy commands which should indicate the type of order made.

            You can also check each Atm Strategies status to see if it filled. You can use variables to track what kind of orders were created at the time of creation.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Fran888, 02-16-2024, 10:48 AM
            3 responses
            43 views
            0 likes
            Last Post Sam2515
            by Sam2515
             
            Started by martin70, 03-24-2023, 04:58 AM
            15 responses
            114 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by The_Sec, Today, 02:29 PM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by jeronymite, 04-12-2024, 04:26 PM
            2 responses
            31 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by Mindset, 05-06-2023, 09:03 PM
            10 responses
            265 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Working...
            X