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 ageeholdings, Today, 07:43 AM
      0 responses
      6 views
      0 likes
      Last Post ageeholdings  
      Started by pibrew, Today, 06:37 AM
      0 responses
      4 views
      0 likes
      Last Post pibrew
      by pibrew
       
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Started by llanqui, Today, 03:53 AM
      0 responses
      6 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      12 views
      0 likes
      Last Post burtoninlondon  
      Working...
      X