Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SampleATMStrategy Order Entry Change

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

    SampleATMStrategy Order Entry Change

    AtmStrategyCreate(Cbi.OrderAction.Buy, OrderType.Limit, Low[0], 0, TimeInForce.Day, orderId, "AtmStrategyTemplate", atmStrategyId);

    Hi

    I have been trying to change your SampleATMStrategy template shown above to enter orders at a Stop or StopLimit 1 tick above the High instead of a Limit at the Low but I can't seem to get the code right. I tried using the standard EnterLongStop(DefaultQuantity, High[0] + 2 * TickSize, ""); but it didn't seem to work with SampleAtmStrategy.

    Any help you can offer is much appreciated.

    #2
    cre8it8, can you please post the code you're using? If you want to submit the stop/stop limit order as an ATM order, you will need to change the arguments for AtmStrategyCreate(), to something like this:
    Code:
    AtmStrategyCreate(Cbi.OrderAction.Buy, OrderType.Stop, 0, High[0] + 2 * TickSize, ...)
    AustinNinjaTrader Customer Service

    Comment


      #3
      The code sample you gave worked. Thanks for your help.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      666 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      377 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