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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      84 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      66 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      69 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      58 views
      0 likes
      Last Post CarlTrading  
      Working...
      X