Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Currently, if I close a position or go to Flatten All while I have a strategy running on that same instrument that I closed the position on, it disables the strategy.
So say I close out of CL 05-11 myself, NinjaTrader disables any running strategy on that same instrument.
My question is, has anyone figured out how to stop that from happening? I want the strategies to continue running even if I close out of a position myself.
Currently I'm doing the following, but it only works the first time:
Can you help answer these questions from other members on NexusFi?
It has been a long time, but I know what you are talking about, and I remember thinking there is a fix within the DOM itself. There is an option, but I just don't remember the name -- going on 2 years since I've used Ninja -- but basically a setting in DOM properties that will allow you to get past this.
But I recall it had some pretty major side effects. Just read the DOM help guide, it is in there somewhere.
There's a reason for it. It's similar to the reason your car doesn't re-engage the cruise control after you've engaged the brakes.....
You're essentially saying "I don't like what's going on so I'm going to override it" and the strategy should remain off until you re-assess what's going on and turn it back on.
Think of it this way, if you exit a position manually, and the strategy was still active, it could in theory IMMEDIATELY enter you into a new position if the conditions were right.....so that's probably why the default is to turn it off....
But my original question stands....because if you don't do it often, then it shouldn't be a big deal to turn it back on when you've manually overridden it.
If you do it quite often, then you might want to consider simply using the confirmation setting, so it alerts you as to entries and exits, but you manually execute those.....
This interpretation is correct for why strategies are disabled on hitting FLATTEN EVERYTHING or CLOSE a position. If you trade via ATM strategy, you can work around this by pressing the middle mouse button on the CLOSE button (instead of left mouse button) when you have an active ATM strategy selected. What this does is act upon the ATM Strategy position versus the account position.
An example...
- LONG 1 ES via NinjaScript Strategy
- LONG 1 ES via ATM Strategy
- Your account position is LONG 2
- If you close the position of the ATM strategy via method explained above, you will only sell 1 leaving the LONG 1 managed by your NinjaScript Strategy
Alternatively, you can just issue a manual order to close a portion or all of your position which will also leave your NinjaScript Strategy enabled.