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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      66 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X