Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

help on EnterLongLimit

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

    help on EnterLongLimit

    Hi,

    the price at 10:00am is 1.5820 and I place a buy limit @1.5800. At 10:08am, the price reaches 1.5798 and it suppose to trigger my buy limit order. I use

    OnBarUpdate() /* based on 1min chart */
    {
    if (cond1) EnterLongLimit(1.5800);
    }

    I use OnOrderUpdate() to check the status, it changes from
    10:00am, State:PendingSubmit
    10:00am, State:Accepted
    10:00am, State:Working
    10:00am, State:PendingCancel
    10:00am, State:Cancelled

    I don't understand why it is cancelled.

    Pls show me how to set the limitprice in EnterLongLimit ?

    Regards,
    Toyogo

    #2
    Orders are only active for the bar they are placed unless you re-submit them or, pass in the parameter liveUntilCancelled = true if you use the long version of the EnterLongLimit() method.
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    607 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    353 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    560 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    561 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X