I will not go into detail of what parameters to use. Here are some generalities... Program several different mkt strength indicators which ascertain market strength. Weight each according to back testing. Combine all indicators into a "master" indicator. Back test the correlation of the "master" indicator to your trading time interval. Good Luck.