Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CreateOrder with ATM

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

    CreateOrder with ATM

    Is it possible from the indicator of send order associated with the ATM strategy? (I know - from AddOn it's possible)

    #2
    Hello,

    This should also be able to be accomplished from an indicator. Can you tell me what methods you are looking at specifically?

    A good majority of the Addon related code can be used throughout the platform in the different types. The best judge if this would work or not would be to try the code you are reviewing in an indicator. If you are able to just copy and paste it in, likely it will work the same. Otherwise if there are errors you may need to adjust the code in order to be used in a indicator.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      a - my account

      Code:
      Order buyOrd = a.CreateOrder(Instrument,OrderAction.Buy,OrderType.Market,TimeInForce.Day,1,0,0,"myOCO","Buy Market",null);
      
      NinjaTrader.NinjaScript.AtmStrategy.StartAtmStrategy("ATM2", buyOrd);
      This code works without errors, but nothing happens

      Comment


        #4
        Hello,

        Thank you for the reply.

        I believe this is due to the signal name you are using.

        I see that the help guide sample is working correctly where what you have provided is not.

        Using the signal name "Entry" specifically I see this working correctly. The ATM strategy specifically would be looking for ATM related signal names.

        I will need to verify this with development as that is not documented that the SignalName Entry should be used specifically. .

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Thank you. It works

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by geddyisodin, 04-25-2024, 05:20 AM
          8 responses
          58 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by halgo_boulder, 04-20-2024, 08:44 AM
          2 responses
          21 views
          0 likes
          Last Post halgo_boulder  
          Started by mishhh, 05-25-2010, 08:54 AM
          19 responses
          6,189 views
          0 likes
          Last Post rene69851  
          Started by gwenael, Today, 09:29 AM
          0 responses
          5 views
          0 likes
          Last Post gwenael
          by gwenael
           
          Started by Karado58, 11-26-2012, 02:57 PM
          8 responses
          14,830 views
          0 likes
          Last Post Option Whisperer  
          Working...
          X