pTrailing or Trailing are much similar, the leading letter just identifies what kind of TARGET or LOSS you want to deal with. p stands for PIPS, $ stands for currency, % stands for percentage and nothing stands for Price.
set stop ploss X trailing Y can only be used in ProBackTest, not in autotrading. It’s two different kind of stops in the same line and are not allowed.
Writing them separately on different lines doesn’t help, since the code is read sequentially, so only the last STOP is recorded as it overrides any one previously set.
You should use on SET STOP ?LOSS, then use this snippet code as Trailing Stop (lines 17-56 are ready to be appended to your exiting code, just changing the two values, start and step) https://www.prorealcode.com/blog/trading/complete-trailing-stop-code-function/.