hello I’m looking to code a trailing stop based on previous lows for long positions and previous highs for short positions. I tested the following code for long positions which used price as the number of bps from the open; if longonmarket then SET STOP trailing lowest[5](low) endif I then tried the following, which didn’t seem to work either; if longonmarket then SET STOP trailing (close - lowest[a](low)) endif I’d greatly appreciate any tips or suggestions on how to solve this. Best Chris