Thanks,
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Best practices for generic un-managed approach.
Collapse
X
-
Best practices for generic un-managed approach.
After doing some research, I've come to the conclusion that an un-managed approach to order handling would suite me best. I'd like to create a generic class that can be referenced from any strategy. Consider it a wrapper around the un-managed approach. This seem possible by supplying the active strategy class in a non-default constructor. In reading the documentation, there are many warnings to consider and compensate for. Before I go down this path, I was wondering if anyone has already done this type of project and are they willing to share a little? Or, do you guys at NT have some source code that would serve as a good diving board for this? Lastly, if the pervious two questions have no suitable answers, would there be someone here interested in a collaborative effort to create generic source code to utilize the un-managed approach from any strategy?
Thanks,Tags: None
-
Hello Herrwolf1,
Thank you for your post.
This could be accomplished using an AddOn and partial classes. Please see the example scripts attached which demonstrate using partial classes in a custom NinjaScript for strategies or indicators.
Also, see this forum post for more information - https://ninjatrader.com/support/foru...ork#post712245
Let us know if we may assist further.Brandon H.NinjaTrader Customer Service
-
Hello Herrwolf,
You might find this example and code interesting: https://ninjatrader.com/support/foru...plemacrossover
HedgePlay
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Net Change
by Segwin
Started by Segwin, 05-07-2018, 02:15 PM
|
10 responses
1,767 views
0 likes
|
Last Post
by Leafcutter
Today, 03:01 AM
|
||
Change colour of Stop market and limit orders to red and green via indicator script
by Rapine Heihei
Started by Rapine Heihei, 04-23-2024, 07:51 PM
|
2 responses
30 views
0 likes
|
Last Post
by Max238
Today, 02:25 AM
|
||
Started by Shansen, 08-30-2019, 10:18 PM
|
24 responses
943 views
0 likes
|
Last Post
by spwizard
Today, 01:29 AM
|
||
Started by Max238, Today, 01:28 AM
|
0 responses
9 views
0 likes
|
Last Post
by Max238
Today, 01:28 AM
|
||
Started by rocketman7, Today, 01:00 AM
|
0 responses
7 views
0 likes
|
Last Post
by rocketman7
Today, 01:00 AM
|
Comment