Hedge=2 means, that I have to use exitLong and exitShort, not enterLong and enterShort as usual, for all trades.

But there is some bug with partial filling of exitLong/Short when trading underlying and options. It will be fixed in the next update.