benchpct problem?

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

There’s definitely a problem with BenchPct. I’ll have it corrected ASAP. Thanks for spotting it.

[font=courier new]BenchPct[/font] is now working as expected.
Since [font=courier new]NoBars[/font] includes the transaction date (as-of date), this should be true*:
[font=courier new]BenchPct = 100 * (BenchClose(0) - BenchClose(NoBars - 1)) / BenchClose(NoBars - 1)[/font]
[size=1]*unless either the open transaction is not on a trading day or the issue changed since the open date[/size]