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 AaronKoRn, Yesterday, 09:49 PM
    0 responses
    11 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    10 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    11 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,981 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Yesterday, 06:48 PM
    0 responses
    9 views
    0 likes
    Last Post rbeckmann05  
    Working...
    X