Is this a bug, or am I missing something:
In the sim:
https://www.portfolio123.com/port_summary.jsp?portid=1517296
Using gainpct<benchpct (sell rule 1) stops out the position as intended.
Using (close(0)-close(nobars))/close(nobars)<(benchclose(0)-benchclose(nobars))/benchclose(nobars) (sell rule 2) doesn’t stop out, and
using (close(0)-close(nobars))/close(nobars)<(close(0,#bench)-close(nobars,#bench))/close(nobars,#Bench) (sell rule 3) doesn’t stop out.
(I thought all three should give identical results.)
In another sim (with innocuous changes?) all three do not stop out the position:
https://www.portfolio123.com/port_summary.jsp?portid=1517299