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.
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?