Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get Position Time and Strategy

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

    #16
    Hi Chelsea,

    Thank you but it's not what I really want since I foresee to keep the strategy disabled with active orders for most of the time.
    Maybe there is a state where the orders can be canceled before the strategy gets started? Or can I check the order in the account one by one and check that they are canceled by putting a wait time till cancelation?

    Comment


      #17
      Hello Peppo,

      There wouldn't a be state for that, that I know of. State.SetDefaults would get called every time you open the indicator or strategies window.

      You could make a separate addon that has a button that cancels orders if you want.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #18
        Hi Chelsea,

        Do you have any example I can re-use?

        Thanks.

        Comment


          #19
          Hello Peppo,

          Below is a link to an example that adds buttons and triggers actions with buttons.
          I need some guidance. I need to create a script that has 3 plots that are public and they plot either a 1 or 0. But I need to create another indicator that has 3 chart buttons that sets these variables. The first indicator needs to get those values from the second indicator depending on the button clicks. Because of using
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, 03-13-2026, 05:17 AM
          0 responses
          86 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          151 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          79 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          53 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          61 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X