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

GTC question

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

    GTC question

    Hello, I've got this simple bit of code just as an example:

    if (Low[0] <= Low[1])
    {
    EnterShortLimit(DefaultQuantity, ((High[
    0]+(High[0]-Low[0])*0.618)), "");
    }

    But it will only fill if that limit is hit on the following bar. If that limit level is hit 2 bars later then there will be no order at all. Could someone help me keep this order good till cancelled even though in my parameters I have GTC set?

    Thanks

    #2
    jjthetrader, this is expected - you can set liveUntilCancelled to true and use the 'advanced' overload mentioned in this link - http://www.ninjatrader-support.com/H...hortLimit.html
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Tin34, Today, 03:30 AM
    2 responses
    15 views
    0 likes
    Last Post Tin34
    by Tin34
     
    Started by sastrades, Yesterday, 09:59 AM
    2 responses
    27 views
    0 likes
    Last Post brucerobinson  
    Started by ETFVoyageur, Today, 12:52 AM
    1 response
    14 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by lollers, Today, 03:26 AM
    0 responses
    10 views
    0 likes
    Last Post lollers
    by lollers
     
    Started by aliyahany, Today, 03:16 AM
    0 responses
    2 views
    0 likes
    Last Post aliyahany  
    Working...
    X