Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterShortStop at Close[0]

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

    EnterShortStop at Close[0]

    I want to EnterShortStop(Close[0]), but in simulation this is rejected with the following error:

    A SellShort stop order placed at '4/29/2015 09:35:16' has been ignored since the stop price is greater than or equal to close price of the current bar. This is an invalid order and subsequent orders may also be ignored. Please fix your strategy.
    There is no guarantee that the next price will meet the stop condition, so why is this an error?

    More importantly, how can I work around this problem?

    #2
    Hello dbooksta,

    Thank you for your post.

    You would need a Short Stop below the current market price. In addition, market could move before this order is received and thus reject it if at an invalid price.

    You can try Close[0] - (1 * TickSize), or any variation to try to ensure the Stop is submitted below the current price or at it's price level.

    Please let me know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    630 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    565 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X