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 zstheorist, Today, 07:52 PM
    0 responses
    5 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    150 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    6 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    6 views
    0 likes
    Last Post tkaboris  
    Working...
    X