Turn off the built-in monitor on MBP El Capitan with clamshell open
You can also just mirror the display of the MacBook screen to the external one and then turn off the brightness of the Macbook screen (so it turns fully black).
Then you can keep the lid open of your MacBook AND use the TrackPad.

System Preferences > Displays > Arrangement > Select "Mirror Displays".