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 kinfxhk, 07-14-2026, 09:39 AM
          0 responses
          15 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 10:18 AM
          0 responses
          59 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 09:50 AM
          0 responses
          42 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 07:21 AM
          0 responses
          47 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-11-2026, 02:11 AM
          0 responses
          38 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X