• 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

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 faustf, Today, 05:00 AM
            0 responses
            6 views
            0 likes
            Last Post faustf
            by faustf
             
            Started by NinjaCustomer, Today, 03:19 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_ChrisSch  
            Started by MarianApalaghiei, Today, 02:54 AM
            1 response
            5 views
            0 likes
            Last Post MarianApalaghiei  
            Started by RandanAL, Yesterday, 11:58 PM
            0 responses
            5 views
            0 likes
            Last Post RandanAL  
            Started by Kabua, Yesterday, 11:24 PM
            0 responses
            5 views
            0 likes
            Last Post Kabua
            by Kabua
             
            Working...
            X