Stop loss is very important in any trade.
There are times when stop loss doesn't work.
This happens when market moves very fast.
But using a stop loss is a good idea.
Trailing stop loss is way to trail the price in order to maximize profits.
I have written a blog post on how to use PSAR as a trailing stop loss.
We can also use a simple moving average as well as an exponential moving average for trailing stop loss.
Using MACD as a trailing stop loss is also a good idea.
First we define a class and provide it with a method that we can use to trail the stop loss.
Read the blog post, I explain everything in detail