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