The problem is: how do you write a system that can identify the prevailing market tone/sentiment? This is a fairly subjective assessment that must take into account a wide variety of data (i.e., volume, volatility, VIX, TICK/TRIN, stochastics, global indicators, economic news, world events...