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 dustydbayer, Today, 01:59 AM
      0 responses
      1 view
      0 likes
      Last Post dustydbayer  
      Started by inanazsocial, Today, 01:15 AM
      0 responses
      3 views
      0 likes
      Last Post inanazsocial  
      Started by trilliantrader, 04-18-2024, 08:16 AM
      5 responses
      22 views
      0 likes
      Last Post trilliantrader  
      Started by Davidtowleii, Today, 12:15 AM
      0 responses
      3 views
      0 likes
      Last Post Davidtowleii  
      Started by guillembm, Yesterday, 11:25 AM
      2 responses
      10 views
      0 likes
      Last Post guillembm  
      Working...
      X