Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Virtual Orders?

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

    Virtual Orders?

    If my Strategy has a two losing trades in a row then I want to halt it until I have a certain number of winning trades again.

    Rather than just stop trading completely when I start to lose I would like to be able to place "virtual trades" such that I am able to keep an eye on whether the losing streak has ended and get back in the game after some unexpected losers. Is there a way to do this?

    #2
    Is there any guidance on this at all to achieve this? I want to stop trading but keep an eye on things to be able to know that if I was to start trading again I would be winning. I'm thinking of unpredictable events like fundamentals that might cause price to crash through two stop orders.... I want to stop trading if that happens but would like to know when things are back to normal so I can resume. What is the best way to do this?

    Comment


      #3
      Hello reach4thelasers,

      Thank you for your post.

      So rather than stopping the strategy or having it stop trading, just switch to the Sim101 account for example?

      Is this for NinjaTrader 7, 8, or both?

      Comment


        #4
        Aha I did not think of that!! It's for NT8. So I can switch accounts at runtime programmatically?

        Comment


          #5
          Originally posted by reach4thelasers View Post
          Aha I did not think of that!! It's for NT8. So I can switch accounts at runtime programmatically?
          Yes, you can - however your strategy only runs on one configured account if you're using all the convenience methods/approaches that you're used to. If you want to switch accounts from a single strategy instance, I would advise you create your own Account event handlers and not mix in the standard OnPosition/Order/Execution Update virtuals or use the managed/unmanaged order methods (EnterLong(), etc). That account object will get you everything to custom tailor a strategy to run on those accounts.

          Information on the Account class can be found here:

          MatthewNinjaTrader Product Management

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          649 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          370 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          109 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          574 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          576 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X