New Pine Script: MSB strategy (revised) with Trailing Profit