Generate Positions from Trading Rules

a Boolean long /short/flat position history based on the entries and
exits.
Also added section headers to ease human interface.