Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

creating a ATM

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

    creating a ATM

    I have a set of condition that when met, it can generate buy or sell signals. I want to incorporate a ATM to manage my trade. I was going through the sample ATM strategy but have a hardtime putting all together. do you have a simplified, step by step considerations when writing the code for managing the entry? I was thinking to do it in ninjatrader and then opening the code and add it to my strategy... is that possible?

    #2
    Hello Yandychang,

    There is no step by step considerations when writing the code for managing the entry.

    This will depend on your logic and there is no set way to enter an order.
    You can enter when flat, or when two indicators cross, or when its a specific time of day or any other logic you want to use. This all depends on what logic you want to use to enter the order.

    There is an included SampleAtmStrategy that shows how to incorporate an Atm Strategy into a NinjaScript Strategy.
    (Tools -> Edit NinjaScript -> Strategy... -> SampleAtmStrategy)

    Also, all of the Atm Strategy methods are outlined in the help guide such as AtmStrategyCreate.
    http://www.ninjatrader.com/support/h...tegycreate.htm

    Atm Strategy Methods - http://www.ninjatrader.com/support/h...gy_methods.htm
    Last edited by NinjaTrader_ChelseaB; 08-22-2014, 10:39 AM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      ATM Strategy

      Yes, I did that. I looked over it and copied what I Though I could use. I put my understanding of it, but There are some Doubts I have, I was wondering if you could clarify that for me.

      One Question is:
      in the AtmStrategyChangeStopTarget method, the first 0, the manual states its the limit Order. But the limit order for what. its that the target profit? is "0" value given when one wants a stop loss only?
      thanks in advance for your help...
      Attached Files

      Comment


        #4
        Yandychang, correct that would be the limit value where applicable, so for a stop market order just leave at 0 as in our helpguide example as it would not be used.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        663 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        376 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        110 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        580 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X