Is there any stoploss method on total M2M on intraday basis

Hi, Is there any method to square off all the open position on the basis of loss on M2M basis.

For Example I am trading in 5 stocks at one time and lets say cumulative loss for all the stocks is 5K.

Now I want all my positions to get squared off in case the total M2M goes below -5K.

Is there any method to execute the above procedure?

Thanks

Hmmm… currently can’t think of any trading platform in India that allows this.