Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Best practices for generic un-managed approach.

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

    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,

    #2
    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.
    Attached Files
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      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
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      54 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      131 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      73 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      44 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X