Profittrailer trailing profit test.
Basic script to show when PT triggers a with trailing.
bought cost & gain % optional. Keep 0 to show all.
Green circles show when the trigger is hit.
Note in the chart that a sell is triggered on an all green bar. This is by design as the lowest price it hit, was lower than the highest price minus the trail % it encountered during *lookback length*