I've read this article (https://ninjatrader.com/support/help...d_approach.htm) but I don't know which script to edit or if I have to create a new one or what??
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to switch to unmanaged mode?
Collapse
X
-
How to switch to unmanaged mode?
I'd like to place more than one trailing stop order at a time with OCO. I hear I can do this in unmanaged mode. How do I switch it?
I've read this article (https://ninjatrader.com/support/help...d_approach.htm) but I don't know which script to edit or if I have to create a new one or what??Tags: None
-
Hello freedombridge,
Thanks for your post.
With reference to the link you provided you would set the strategy to unmanaged by the code:
In the unmanaged approach you are responsible for all coding, there is no trailing stop unless you create one. You can link two together with through the OCOid (One Cancels Other).Code:protected override void Initialize() { Unmanaged = true; }
In the unmanaged approach you would use:
SubmitOrder: https://ninjatrader.com/support/helpGuides/nt7/?submitorder.htm
ChangeOrder: https://ninjatrader.com/support/help...hangeorder.htm
CancelOrder: https://ninjatrader.com/support/help...ancelorder.htm - Note this is the same in managed or unmanaged.
You would want to create a new ninjascript for an unmanaged approach as many of the methods in managed are not applicable. Here is a link to a file upload that contains both a managed and unmanaged strategy that may serve as an example for you: http://ninjatrader.com/support/forum...hp?&linkid=571
-
Thanks for your response NinjaTrader_Paul. It still seems a little complex for me to find time to learn. If you or anyone else reading this would like to get paypal'd some extra money while sharpening your programming skills then please give me a quote on what you would charge to just create the file for me.
What I'd like to do is simple.
1. I must be able to use chart trader to do the trade.
2. I want to be able to make 2 ATM orders where one cancels the other when filled.
3. I must be able to drag the orders up and down without breaking the functionality.
If you are interested then please PM me. Thanks!
Comment
-
Hello freedombridge,
Thanks for your reply.
You may want to review and test the strategy SampleATMStrategy that came with your Ninjatrader. This working example strategy shows you a simple entry condition and then use an existing ATM strategy to manage the trade (You would need to create an ATM strategy called ATMStrategyTemplate). As you know, with an ATM you can adjust the orders as needed in the chart trader. With a coded strategy you can also add your own logic.
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment