Forums ProRealTime English forum ProOrder support using set stop and trail stop Reply To: using set stop and trail stop

#130160

Line 37 is not allowed, you can’t combine two different kind of SL’s.

Use

then use Nicolas’code at https://www.prorealcode.com/blog/trading/complete-trailing-stop-code-function/

(lines 17-56) as a trailing stop.