- module (by Joris Duyck),
- Winsorizing submodule and
- HMA-Kahlman Trend module.
The module produces crossovers predictive of the next local trend. The Winsorizing (clipping) submodule filters signals by a level, eliminating the ones with the below a threshold. The last feature obviously does not work with the assets not supporing , so set the Winsorizing submodule to false. The Winsorizing and modules can be turned off.
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.
alertcondition(crossup, title='Buy', message='go long') // long
alertcondition(crossdn, title='Sell', message='go short') // short
It works well in conjunction.