Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Limit Orders above Market are not filled with historical data

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

    Limit Orders above Market are not filled with historical data

    I use the UnManaged approach in my strategy and submit profit target in OnExecution with

    Code:
    Go long OnExecution...
    pt = SubmitOrder(0, OrderAction.Sell, OrderType.Limit, quant, ptPrice ...)
    If the strategy later decides to change this order it is modified by

    Code:
    ChangeOrder(pt, quant, newptPrice, 0);
    I do not check whether newptPrice is currently above or below market, because Limit orders above will be filled at current price.
    This works in SIM and MarketReplay. But for historical data it just closes the position at the newptPrice even if the market is above.
    Last edited by symphys; 08-27-2010, 05:02 PM.

    #2
    Yes, historical data will fill you at the limit price. Suggest you try using the liberal fill algorithm.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks! I see. Rtfm to me I guess :-) ...

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      598 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      343 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      556 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      555 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X