This script is intended to be a Pine Editor version of the one I normally used on a different platform, so your feedback is more than welcome to help me improve it, as fine tuning is ongoing.
New patterns will be added in the next couple of days.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
Where Average = WMA and Average = triangular average calculation.
Then each pattern would normally include a conditional to evaluate if it was in an uptrend or a downtrend. For example:
if TrendDown AND PiercingLine then
(display the signal)
Any idea on how I can do this here on Pine?