Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

compile error

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

    compile error

    I am using Ninja Trader 6.5
    I tried the following commands

    EnterLong();
    Print ("Long Position");
    Print(order.ToString());

    It refused to compile and it compiled when I commented the line
    Print(order.ToString());


    Please guide me

    #2
    Hello rjngh2005,

    order isn't a reserved property, so to access it you would need to put the print statement in OnOrderUpdate with order used in the method name.

    protected override void OnOrderUpdate(IOrder order)
    {
    Print(order.ToString());
    }

    Below is an identical statement:
    protected override void OnOrderUpdate(IOrder tuesday)
    {
    Print(tuesday.ToString());
    }
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    85 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    47 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    29 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
    67 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X