behavior of a triggered stoploss

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #191348 quote
    Albaran
    Participant
    Average

    Hi there,

    I wanted to know how a trailing stop behaves if, because of market circumstances, a limit order is invoked?

    If the trailing stop loss is already on the market, will it be replaced by the limit order?

    (shouldn’t you first cancel the stop loss in the code by setting it to 0 in order for the limit order to settle in/take over?)

    Or does the trailing stop loss stay in the market, whatever happens afterwards in the code, once it’s been triggered?

    cheers,

    #191351 quote
    GraHal
    Participant
    Master

    Good questions!

    Trailing Stop (TS) can stop a profitable trade from turning into a losing trade when price retreats.

    The TS would still be following price even if there is a price spike, but the spike may hit a Limit Order and so secure a higher profit (than if TS it hit by price retreating after the spike).

    Here’s some bedtime reading … 🙂

    https://www.investopedia.com/articles/trading/08/trailing-stop-loss.asp#:~:text=Here’s%20how%20it%20works.,the%20price%20reaches%20new%20highs.

    Albaran thanked this post
    #191368 quote
    robertogozzi
    Moderator
    Master

    Do you mean the built-in instruction SET STOP PTRAILING or a code snippet?

    #191375 quote
    Albaran
    Participant
    Average

    @RobertoGozzi: I meant a personal version of a trailing stop loss…

    My main preoccupation is that I don’t want a limit order to take over if my TSL is already in the market.

    I’m not sure whether a trailing stop loss, when it has been activated, can be removed because of an instruction in the code – other than the question below?

    That’s why I asked if there should/ has to be a specific mention of the TSL set to 0 in order for a limit order to take over/settle in?

    #191442 quote
    robertogozzi
    Moderator
    Master

    If it’s an opposite order, the older one will be closed before opening the new one. In such a case if a trailing stop had already been activated, you will exit at an even better price! (then you’ll have to restart the trailing stop to trail the new trade).

    If you are adding an additional position (accumulation), then I sugget that you first clear the trailing stop, if already activated, to restart trailing from the new POSITIONPRICE (not TradePrice), to be able to exit at breakeven or at some gain.

    Albaran thanked this post
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

behavior of a triggered stoploss


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Albaran @albaran Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by robertogozzi
3 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/06/2022
Status: Active
Attachments: No files
Logo Logo
Loading...