Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Atm

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

    Atm

    Hi,
    1. I got ATM strategy and sometimes market moves faster than my order can be sent. So I'm getting pop-up error: Stop long order can't be placed below market.
    Is there any way to catch this error within a code?

    2. Is it possible to store some data within ATM strategy even if I terminate it? I just wanna store my trades and plot it on chart.

    3. How to make ATM strategy do something in the moment when profit target triggered?

    #2
    Hello Leeroy_Jenkins,

    Thank you for your post.

    To clarify, are you referring to an order that was manually placed with an ATM or ATMs that are placed via a NinjaScript Strategy?

    Thanks in advance; I look forward to assisting you further.

    Comment


      #3
      ATMs that are placed via a NinjaScript Strategy

      Comment


        #4
        Hello Leeroy_Jenkins,

        Thank you for your reply.

        ATM Strategy controlled trades placed by a NinjaScript strategy will not be plotted on the chart while the strategy is in operation.

        For the order rejections, you can check the status of the order and attempt to change it if it is found and it exists.

        Here are two methods you can use:

        GetAtmStrategyStopTargetOrderStatus - https://ninjatrader.com/support/helpGuides/nt8/getatmstrategystoptargetorders.htm

        AtmStrategyChangeStopTarget - https://ninjatrader.com/support/helpGuides/nt8/atmstrategychangestoptarget.htm

        If the order is marked as it does not exist, AtmStrategyChangeStopTarget will return false as it cannot find an associated order to change. In this case, I would advise to keep a looser ATM strategy template at the ready so you can enter with that ATM strategy if market conditions are too volatile for your primary ATM strategy.

        The workaround would involve checking if the market conditions allow for you to enter with your primary ATM strategy. The check would have to be made before the ATM is entered so you can enter with a different ATM. In this case, you would have to program some of the ATM strategy logic by hand so you can detect if the strategy will be able to enter with it.

        As far as making the ATM strategy "do something" when the profit target is triggered, I'm not certain exactly what you mean here. ATMs are pretty well self contained, and once the profit target is triggered the ATM will be closed.

        Please let us know if we may be of further assistance.

        Comment


          #5
          ATMs are pretty well self contained
          Too bad it doesn't support OnExecutionUpdate().

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          72 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          143 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          76 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          47 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          51 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X