Trailing Stop incorrect

Forums ProRealTime English forum ProOrder support Trailing Stop incorrect

Viewing 2 posts - 1 through 2 (of 2 total)
  • #152274

    Hi.

    I am not able to understand the result in ProBackTest.

    The trailing stop is not the same as the Backtesting and Automatic trading script.

    The settings are below:

     

    In the attached PNG file, “trailing stop error” the results are not the same as the settings.

    Note: The trades are daily, but shown in “trailing stop error” on the one hour candle.

    to show the trades..

     

    I have attached the file.

    Its is not pretty as I had to have a script for the ZeroLagMACD,

    that was ProBackTest compatible.

    Not written by me. Just copied through ProRealCode.

    Source unknown.

    I cannot understand the variation in the trailing stop settings and on the charts?

    Thank you, for any thoughts and suggestions.

    regards

    Trevor

    #152278

    Post your topic in the correct forum, next time please! and always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read.

    The “set stop trailing” instruction is a trailing stop attached to your order and manage by IG, so they can adapt the levels whenever and however they want and this behavior cannot obviously be replicated by a backtest.

    Most of people don’t use this instruction and prefer to use soft coded trailing stop, there are numerous versions over the website.

    Search in the snippets list:  PRT codes Snippets

    or use this one: Complete trailing stop code function

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

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