Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Object

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

    Order Object

    I have my own class in namespace NinjaTrader.NinjaScript.Strategies and want to maintain a list of Order Objects in that class as returned by EnterLong etc.

    How should I define

    public List<Order> oList = new List<Order>();

    to allow my class to use Order Objects. NT8 appears to like the above so far?
    Last edited by delTik; 04-26-2016, 07:57 AM.

    #2
    Hello delTik,

    Thank you for your post.

    Are you inheriting the Strategy base class? MyClass : Strategy?

    If you inherit the base class it will allow you to call Order.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by strategist007, Today, 07:51 PM
    0 responses
    2 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,967 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    4 views
    0 likes
    Last Post rbeckmann05  
    Started by rhyminkevin, Today, 04:58 PM
    4 responses
    58 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Started by iceman2018, Today, 05:07 PM
    0 responses
    6 views
    0 likes
    Last Post iceman2018  
    Working...
    X