- Short Period: 20
- Medium Period: 50
- Long Period: 100
This script also provides alerts for when the price crosses over/under a given level or pulls back.
Note: It sometimes displays supports above the price and resistances below it, I still have to figure out why (and fix it if possible), but it's still useful.
- Change default periods to 5, 20, 50
- More reliable levels by checking their position
- Code refactoring
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.