The original script was posted on ProRealCode by user lolo.
Two consecutive up or down days with above average volume in opposite direction to moving averages. Strategy based on price bouncing off resistance or moving average. Place bet in same direction as moving average