Fundamental framework for “technical analysis” of market prices