I'm working on a strategy
In strategy back testing I found that in trade lists their was a term by cum.profit
my problem is that can we able to stop the trade when my cum.profit reaching some profit or loss
can we able to develop this in pine script
please can anyone help ...?