For me this was the most difficult question. Many time I opened a trade with a stop loss too tight only for the stop order to trigger and then bounce again leaving myself upset!
The idea is to setup a stop loss not too close but not too far either. So how do you set your stop?
I take this idea from ‘Come into my trading room‘ by Alexander Elder. It calls ‘The chandelier exit’ and it helps you to setup a stop loss out from the market noise.
The formula is very easy:
(Highest value of the last 22 bars-3)*ATR(22)
for shorting is the same but with the lowest value of the last 22 bars.
The idea is to move your stop loss forward as long the trade goes in your direction. But Never move it down!
The code that I use to add it to IG index chart packaging is this:
RETURN highest[22](High)-3*AverageTrueRange[22](close)
and for short:
RETURN lowest[22](Low)+3*AverageTrueRange[22](close)
this really works well for me and saved me many time from being stopped out!
