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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      384 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      249 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      210 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      297 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      260 views
      0 likes
      Last Post CarlTrading  
      Working...
      X