Trailing stop on lowest low

Forums ProRealTime English forum ProOrder support Trailing stop on lowest low

Viewing 9 posts - 1 through 9 (of 9 total)
  • #26261

    Hi. Wondering how to encode “lowest [5] (low)” trailing stop counting from the trade time only and returns and stays with the highest value “lowest [5] (low)” after we have trade. Trailing stop value never goes down after rising, displays only the last maximum value of “lowest [5] (low)” in the trade. Thanks

    #26398

    If I understand correctly, you want your stoploss to move on the last “lowest[5](low)” each time this value is higher than the previous one?

    #26403

    Yes. After the purchase, the walk up just not down. In order to be stopped in decline.

    #26669

    OK, here we go, this is a code snippet that should work (not tested, please do your own test in ProBacktest with GRAPH instruction):

     

    #28816

    Hi, trying to get this code to work but it wont, any advice ?

     

    #28843

    Did you graph “ll” to see if it’s moving?

    Add this line into your code and launch a backtest please.

     

    #29366

    Got it working but not as i thought

    Wanted the stop to be behind the entry price bar on the lowest low within x bars away, took away the trailing but dint work, code as follow

     

    #29994

    You should look at this blog article on how to make a stoploss with an indicator value.

    The lowest low of X periods is the lower band of a Donchian Channel of X periods.

     

    #30003

    @Nicolas referring to the recent post at https://www.prorealcode.com/topic/trailing-stop-loss/ can you possibly assist us in coding a manual Trailing Stop that will work the same as the Set Stop pTrailing function. I have attempted to code it but it is unfortunately not working as I imagined it to work.

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

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