Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLongLimit order expires at the end of the candle && "isLiveUntilCancelled"= true

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

    EnterLongLimit order expires at the end of the candle && "isLiveUntilCancelled"= true

    Hi everyone,
    I was working on how to use Limitorders in NT like EnterLongLimit, I encountered several problems and questions:
    1- When I set the "isLiveUntilCancelled" to "true" the position still closes at the end of the candle. (the code is attached)
    2- Is there any code to set the limit orders for short positions too, something like "EnterShortLimit"?
    3- If the order gets in position, will setting stoploss act like "limit order" or "market order"?
    Thanks in advance
    Attached Files

    #2
    Hello godric,

    Thanks for your post.

    I applied your strategy to NQ 09-19 and historically I do see entries occurring. They all exit at the end of the session as you have no exit orders.

    Yes, you can use EnterShortLimit() in a similar manner. Reference: https://ninjatrader.com/support/help...shortlimit.htm

    If you use SetProfitTarget() it would be as a limit order. Reference: https://ninjatrader.com/support/help...ofittarget.htm

    If you use SetStopLoss() it would be as a stopmarket order, from the help guide, "Stop loss orders are submitted as stop-market orders" Reference: https://ninjatrader.com/support/help...etstoploss.htm

    You may want to review the section on Managed Approach for an overview: https://ninjatrader.com/support/help...d_approach.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X