Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by nandhumca, Yesterday, 03:41 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by The_Sec, Yesterday, 03:37 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by vecnopus, Today, 06:15 AM
    0 responses
    1 view
    0 likes
    Last Post vecnopus  
    Started by Aviram Y, Today, 05:29 AM
    0 responses
    5 views
    0 likes
    Last Post Aviram Y  
    Started by quantismo, 04-17-2024, 05:13 PM
    3 responses
    27 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X