Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can You Name an ATM Used by an Automated Strategy Anything You Want?

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

    Can You Name an ATM Used by an Automated Strategy Anything You Want?

    hello all, and thanks in advance for any help.

    I have been experimenting with using the SampleATM strategy that comes with NT.

    However, there is a comment in the code that says

    "**** YOU MUST HAVE AN ATM STRATEGY TEMPLATE NAMED 'AtmStrategyTemplate' CREATED IN NINJATRADER (SUPERDOM FOR EXAMPLE) FOR THIS TO WORK ****"

    Does this mean that only an ATM strategy specifically named 'AtmStrategyTemplate' will work?

    Or does this mean that if you change around the code for using an ATM, replacing ' 'AtmStrategyTemplate' with 'DivergenceATM' it will also work?

    I'd like to be able to name the ATM's that get used by automated strategies whatever I want. That would make it easier to pick apart which strategies are being used by which ATM's they employ.

    #2
    Hello outstretchedarm,
    Any atm template will work. Just make sure a template with that same name is present.

    Thus if you have a atm template named DivergenceATM the just change the name to it.

    Thus the code will look like

    Code:
    AtmStrategyCreate(Cbi.OrderAction.Buy, OrderType.Limit, Low[0], 0, TimeInForce.Day, orderId, [B]"DivergenceATM"[/B], atmStrategyId);
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      excellent. let me work with it some

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      27 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      117 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      69 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      226 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      417 views
      0 likes
      Last Post CaptainJack  
      Working...
      X