Using the pattern recognition paradigm, we have designed a scalar composite leading indicator that predicts a financial crisis in Turkey about six months in advance. Logistic regression was employed to distinguish between near-crisis months and safe months from January 1998 through October 2000, which is the last month before the most recent crisis in Turkey. Thus trained and once validated, the Turkish Economy Stability Index (TESI) was then successfully tested using independent data from the 1994 crisis. One of the two dimensionless attributes that we integrated into TESI, the capital adequacy ratio of banks, a precursor of banking crises, was selected from among seven precursors of the 1997 Asian Financial Crisis. The other one, the ratio of international reserves to short term outstanding external debt, is itself a precursor of currency crises. Our method for designing TESI may easily be applied to other emerging markets provided that they have had at least one financial crisis in recent history.