Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

*NT** AtmStrategyChangeStopTarget() method error: OrderName 'STOP1' does not exist

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

    #31
    Hello,

    Yes you do need to wait until your filled before you can modify an order. I get the same error once and the it modifies after its filled. Since its a market order your submitting it will take 1 or 2 OnBarUpdate cycles before it fills and then the stops will move.

    I look forward to assisting you further.

    Comment


      #32
      Is there a way to check if my order has been stop out?

      Comment


        #33
        Hello,

        If you are using an ATM strategy you can use the executions tab for current day trades or the account performance and you can see the name of the order that took you out of the position on the executions or trades tab. It will have a name called Stop 1 for example which would show you are stopped out on the trade with your first stop loss.

        Let me know if any questions.

        Comment


          #34
          I want to check it in the code. Is there a way on that?

          Comment


            #35
            Hello,

            You can in realtime using this method however you would not have access to historical data of an ATM Strategy from the account performance tab. You could only access what target filled is the ATM Strategy was spawned and run after the strategy was enabled.



            -Brett

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by algospoke, Yesterday, 06:40 PM
            2 responses
            23 views
            0 likes
            Last Post algospoke  
            Started by ghoul, Today, 06:02 PM
            3 responses
            14 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by jeronymite, 04-12-2024, 04:26 PM
            3 responses
            45 views
            0 likes
            Last Post jeronymite  
            Started by Barry Milan, Yesterday, 10:35 PM
            7 responses
            22 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by AttiM, 02-14-2024, 05:20 PM
            10 responses
            181 views
            0 likes
            Last Post jeronymite  
            Working...
            X