A simple walkthrough of the original indicator, the requirements and the downloadable code.
Trading indicators, explained. Strategies you can download.
I share Pine Script indicators and strategies I've worked on, explain what each one does, and make example code available so you can test it on your own TradingView charts.
What was changed, and why.
Settings and screenshots.
Free Pine Script source code.
Free TradingView scripts
Scripts with clear explanationsSupertrend + DEMA Reversal Strategy
A modified Supertrend that uses DEMA as its source and converts buy/sell signals into simulated long and short trades.
- Original: Supertrend shows trend direction and signals.
- Modified: Select DEMA(50) or another price source.
- Added: Reversal trades on opposite signals, with 1-hour signals by default.

Latest articles
Notes from the development workHow the source setting changes the indicator, illustrated using real chart examples.
About CW
I'm a software engineer who works on TradingView indicators and Pine Script strategies. This is where I share some of the scripts, the original ideas behind them, and what I changed along the way. The aim is to keep everything easy to understand, even if you're new to Pine Script.
Need help with a script?
If you run into any issues with installation, chart configuration, or anything related to a script, feel free to contact me on GitHub.