I am wondering how to code a system that allows me to set a stop loss tight in case market goes against me first 1-3 bars after i execute my order, then change it to a larger one after that. I am cureently using the excellent nicolas trailing stop – the MFE version.
Although i didn’t write it obviously this seems to execute sell or sellshort rather than changing the stop ie it doesnt actually set a trailing or other stop.
I have tried with a variable that resets as it cycles but im not sure this is the best way?