Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using EnterLongStopLimit in a class NT8

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

    Using EnterLongStopLimit in a class NT8

    Hello together,
    need some help...

    I am playing with NT8 and I would like to prepare my orders inside a class. My problem is finding the NT8 class, which I have to use for that.

    I defined the Order object:
    private Order Order = new Order();

    and I am able to do:
    Order entryOrder = null;

    But next line doesn´t work:
    entryOrder = EnterLongStopLimit(....);

    --->> failure message CS0103 -> Name EnterLongStopLimit not available in this context.

    Thanks for your help!
    uupsa

    #2
    Hello uupsa,

    Your custom class will not contain a definition for the EnterLongStopLimit() method, hence why you are getting the CS0103 error.

    The Strategy class contains the definition of EnterLongStopLimit().

    You would need to pass the strategy instance to your custom class' method.

    Example:
    Code:
    public class CustomClass
    {
         public void SubmitOrder(Strategy strategy)
         {
              strategy.EnterLongStopLimit(....);
         }
    }
    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      It works, thanks for your help!
      uupsa

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      77 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      45 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      27 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      63 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X