That's the problem, I can show you examples (like above) of an ascending triangle, but I can't tell you how to code it. With an ascending triangle, price would hit a price level where it's rejected multiple times, but at the same time it would be putting in higher lows until it gets very narrow between the high and low. At that point, it will usually break to the upside. That would not be hard to code if the pattern was very orderly, but I don't know how to do it because there is no exact amount of time/bars between the first low, next high, next higher low, etc...