Increase positionsize after stoploss

it is possible to double positionsize after stoploss ???

In my code i have :

setPositionSize(100,spsPercentOfEquity);

i want increase positionsize if activates stop loss and return to original positionsize after one trade not activates stoploss.
thanks