OPEN-SOURCE SCRIPT
eBacktesting - Learning: Change of Character

eBacktesting - Learning: Change of Character helps you spot a “Change of Character” (CHoCH) — the moment price stops behaving one way and starts behaving the other.
It does this by tracking clear swing highs and swing lows, then marking the first **candle close** that breaks structure **against** the current move:
- Bullish CHoCH: price shifts from making lower structure to breaking above a key swing high.
- Bearish CHoCH: price shifts from making higher structure to breaking below a key swing low.
Use CHoCH to practice timing: early trend shifts, reversals, and potential new legs — especially when combined with your usual confluence (liquidity, premium/discount, key levels, sessions, etc.).
These indicators are built to pair perfectly with the eBacktesting extension, where traders can practice these concepts step-by-step. Backtesting concepts visually like this is one of the fastest ways to learn, build confidence, and improve trading performance.
Educational use only. Not financial advice.
It does this by tracking clear swing highs and swing lows, then marking the first **candle close** that breaks structure **against** the current move:
- Bullish CHoCH: price shifts from making lower structure to breaking above a key swing high.
- Bearish CHoCH: price shifts from making higher structure to breaking below a key swing low.
Use CHoCH to practice timing: early trend shifts, reversals, and potential new legs — especially when combined with your usual confluence (liquidity, premium/discount, key levels, sessions, etc.).
These indicators are built to pair perfectly with the eBacktesting extension, where traders can practice these concepts step-by-step. Backtesting concepts visually like this is one of the fastest ways to learn, build confidence, and improve trading performance.
Educational use only. Not financial advice.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
eBacktesting.com
--------
Check out the most complete backtesting suite integrated on TradingView!
Join our free Discord group for more info, Q&A, and education:
discord.gg/kJSmwSxBpW
--------
Check out the most complete backtesting suite integrated on TradingView!
Join our free Discord group for more info, Q&A, and education:
discord.gg/kJSmwSxBpW
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
eBacktesting.com
--------
Check out the most complete backtesting suite integrated on TradingView!
Join our free Discord group for more info, Q&A, and education:
discord.gg/kJSmwSxBpW
--------
Check out the most complete backtesting suite integrated on TradingView!
Join our free Discord group for more info, Q&A, and education:
discord.gg/kJSmwSxBpW
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.