Trailing stop function – what are the STOP orders for?

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

Currently, there are 0 users and 1 guest visiting this topic.
View all attachments
Viewing 5 posts - 1 through 5 (of 5 total)
  • #178651 Report

    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 Report

    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 Report

    It is a pending STOP order.

    Attachments:
    1 user thanked author for this post.
    #178831 Report

    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 Report

    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.
Viewing 5 posts - 1 through 5 (of 5 total)

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