Piggy should only take profit after a winning trade


Currently if you are above your starting balance the piggy will take a percent after any trade whether you made or lost money on it.

Example: You start with $500 and win up to $1,000. With a 10% pig $100 will be banked. Then if you lose $200 more you are still up and it banks another $80. So now your working capital is only $720 instead of $800.

I would like it to only bank money after the winning trades, and leave the capital to grow after a losing trade.