Added the possibility to leave open positions in MT regardless of the state of the position in NT.

Fixed a potential bug with an incorrect definition of the instrument type in NT.

Some minor improvements.