Hi there!
Yes I know – the topic stop loss has been covered hundreds of times in this space, but I didn’t found a code snipped matching my needs.
So I am looking for a simple code snipped which does the following:
- after entering a long/short position, the stop is placed for a long position (3 candles back low -1 tick) and for short (3 candles back high + 1 tick)
- as long as the trade is active the stop is updated accordingly (always 3 candles back +/- 1 tick)
I tried to code it by myself, but I failed – shame on me – I know 🙂
So is there anyone who solved this problem already or likes to write it?
Many thanks in advance.