Trailing stop function – what are the STOP orders for?

Forums ProRealTime English forum ProOrder support Trailing stop function – what are the STOP orders for?

Viewing 7 posts - 1 through 7 (of 7 total)
  • #178651

    Hi

    In this trailing stop function, what is the purpose of STOP in the last commands SELL AT newSL STOP and EXITSHORT AT newSL STOP? Is it a stop loss command or does it stop the code from continuing to run the commands after STOP if the conditions are met?

    Thanks

    Sachin

    #178652

    In this page of the blog  you will find the explanation of the code :

    https://www.prorealcode.com/blog/trading/complete-trailing-stop-code-function/

    1 user thanked author for this post.
    #178653

    It is a pending STOP order.

    1 user thanked author for this post.
    #178831

    Hi Nicholas

    Thanks for clarifying.

    Does the code in the below page of the blog incorporate a minimum stop distance required by the broker? e.g. a minimum stop distance of 10 points for any instrument?

    https://www.prorealcode.com/blog/trading/complete-trailing-stop-code-function/

    Thanks

    Sachin

    #178832

    This is Nicolas’ code with the addition of distance and a delayed execution https://www.prorealcode.com/topic/problemi-con-broker-ig-riguardo-lutilizzo-di-algo-con-trailing-stop-e-trailing/#post-175071

    Distance is at line 9.

    Delayed execution is at line 6, just replace 0 with any number to delay execution for N bars from entry.

     

    1 user thanked author for this post.
    #231845

    Dear Roberto,

    this code for trailing stop works also for Interactive broker?

    kind regards

     

    Alessio

    #231857

    I don’t know, as I don’t use IB.

    If the ProRealTime language is wholly supported, it should, but that’s just speculation.

     

Viewing 7 posts - 1 through 7 (of 7 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login