The sensitive condition that would precede a complete regime change. 2 Bollinger Bands for filter + configuration.


if (Low[i]<iBands(symbol,0,120,2,0,PRICE_MEDIAN,MODE_MAIN,i) && Low[i]<iBands(symbol,0,30,2,0,PRICE_MEDIAN,MODE_LOWER,i)
&& L53[i]>L80[i]) {
ObjectCreate("PINUSXZZ"+IntegerToString(i),OBJ_TEXT, 0, Time[i],Low[i]+40*Point);
ObjectSetText("PINUSXZZ"+IntegerToString(i),"Displacement", 26, "Impact", clrBlue);
}
if (High[i]>iBands(symbol,0,120,2,0,PRICE_MEDIAN,MODE_MAIN,i) && High[i]>iBands(symbol,0,30,2,0,PRICE_MEDIAN,MODE_UPPER,i)
&& L53[i]<L80[i]) {
ObjectCreate("PINUSXZZ"+IntegerToString(i),OBJ_TEXT, 0, Time[i],High[i]+90*Point);
ObjectSetText("PINUSXZZ"+IntegerToString(i),"Displacement", 26, "Impact", clrBlue);
}


The market would have gone a bit too far if it exceeded the 30-sample BB and is beyond the 120 SMA, although it would a great fade for the most part, but it could be prone to trigger a regime change if it was doing it within 80 pips of the 200-sample hourly high.