After a couple adjustments, double signals are now being ignore.
Here's how this script works:
Based entirely on a John Carter scalping setup, a candle will be painted purple if the next two closes are in a opposite direction of the past trend.
Green triangles indicates that the reversal is bullish, red triangles indicates that the reversal is bearish. Both are entry/exit points if you want to follow this set up.
Personally, I find this setup to work best in trending days, but it does a great job on choppy days if you use it as a confirmation.