Add or Multiply position on every reversal

I trade in a very simple method of putting a fixed price and with simple strategy of Buy above and Sell below that price. when ever Ltp crosses this price my position is revesed after exiting the position in hand. This fuction is working perfectly in your portal, but when reversals are too many in a day, I end up having high loss. To counter this loss I want to add or multiply on every reversal.

Is there any way I can modify my strategy to have adding or multiplying my positions on every reversals?

Thanks.