Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Entry Error

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

    Order Entry Error

    I keep getting the following error message:
    "An order has been ignored since the stop price ‘2010.25’ near the bar stamped ‘1/13/2015 12:20:00 PM’ is invalid based on the price range of the bar. This is an invalid order and subsequent orders may also be ignored."

    This is coming from "SubmitOrderUnmanaged()", Sell, StopMarket on the 1 tick series; the primary series is the ES 1 minute. eg, my StopMarket price is 2010.25, and the Lows[0][0] = 2010.75, so this should work, right (ie, that the StopMarket price is below the low of the most recent bar; I've also tried Lows[1][0], but get the same error)?


    #2
    Hi, thanks for posting. The stop price is invalid, likely in historical data. Since its a Sell Stop order the price used needs to be below the open of the bar. Try using this variable as your stop price:
    Code:
    double stopPrice = Math.Min(Lows[1][0], GetCurrentBid() - TickSize);

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    72 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X