Represents market posotion.
MarketPosition members:
// Properties
bool IsFlat // True if there is no opened position
bool IsLong // True if current position is long
bool IsShort // True if current position is short
int this[int positionAgo] // returns position of positionAgo entry:
// 1 for long position
// 0 for flat position
// -1 for short position
// positionAgo is counted as follows:
// MarketPosition[0] - current entry,
// MarketPosition[1] - previous entry and so on.