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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      60 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      145 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      161 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      97 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      283 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X