Explainers / WaveTrend with Crosses [LazyBear]
WaveTrend with Crosses [LazyBear], explained from the source
WaveTrend with Crosses [LazyBear] is an open-source TradingView indicator published by lonestar108, with about 24,000 boosts. Its header credits LazyBear, and the maths is the same as LazyBear's WaveTrend Oscillator. What it adds is a dot wherever the two lines cross and a colour on the price bar. This page walks through the published code in order, says what each part really does, and ends with where it fails. It does not say whether the indicator makes money, and it gives no trades.
The surprise: every cross gets a dot, wherever it happens
Many users read the dots as "a cross in the overbought or oversold zone". The code does not test the zone. A dot is drawn on any bar where the green line and the red line swap order, at any height. The 60 and 53 lines are drawn on the pane and play no part in the dots or the bar colours.
In our Python port, on random prices, 21,482 of 28,244 crosses (76%) happened between the -53 and 53 lines. Three dots in four were mid-range.
Step 1: the two lines
The typical price of each bar (high, low and close averaged) is compared with its own 10-bar exponential average, scaled by the usual size of that gap, and smoothed over 21 bars. That is the green line. The red line is a 4-bar simple average of the green one. Our WaveTrend Oscillator page goes through this part line by line.
Step 2: the dots
On a bar where the lines cross in either direction, the script draws a black circle with a smaller coloured circle on top, placed at the red line's value. The small circle is red when the green line finished below the red line, and lime when it finished above.
Step 3: the bar colours
On the same bars, the price bar on the main chart is painted aqua when the green line finished below the red line and yellow when it finished above. All other bars keep their normal colour.
Step 4: what is not in the code
No alert conditions. No test of the levels. No settings for the 4-bar signal average or for the price used.
What we checked in Python
We ported the logic to Python and ran it on invented random-walk prices with a typical move of 1% a bar, each bar built from 10 smaller steps: 40 runs of 5,000 bars, the first 300 of each run left out.
How many dots. A median of 702 per 4,700 bars, about one bar in seven. The median distance from one dot to the next was 5 bars. These prices have nothing to find, so every one of those dots is noise.
Where the dots are. 76% between the -53 and 53 lines, as above. The green line itself was beyond 53 or -53 on 20.3% of bars.
The live bar flickers. The lines use the current price until the bar closes, so a dot and a bar colour can appear and then go. For every 10 crosses that held at the close, about 3 more showed inside a bar and were gone by its close (9,412 against 28,250). On a closed chart you only see the ones that held.
These figures describe the code on invented data, not any market.
Where it fails
- Dots ignore the levels. Three in four dots in our port were between the bands.
- Dots are frequent. About one bar in seven on random prices.
- A dot can appear and vanish on the live bar. About 3 vanished for every 10 that held.
- The bar colour says the same thing as the dot. It is one event drawn twice, not two confirmations.
- No alerts. To be notified of a cross you would have to add your own condition.
- The levels are typed-in numbers. The scale has no ceiling, and 60 and 53 are not measured from the chart.
- The signal average is fixed at 4 bars.
Educational only. Not financial advice. Nothing here is a recommendation to buy or sell anything. WaveTrend with Crosses [LazyBear] is published by lonestar108 on TradingView and credits LazyBear; this page describes its published open-source code in our own words and is not affiliated with either author. Simulation figures come from synthetic random-walk prices and say nothing about how the script behaves on any market.
Also explained: Repaint checker, VWAP, Supertrend, RSI, UT Bot Alerts, Nadaraya-Watson Envelope, Squeeze Momentum, What is repainting on TradingView?, Is TradingView backtesting accurate?, Chandelier Exit, WaveTrend Oscillator, QQE MOD, Pivot highs and lows, Hull Suite, Range Filter, Twin Range Filter, HalfTrend, ZigZag++, SSL Hybrid, CM MacD Ultimate MTF, Volume Profile / Fixed Range, ADX and DI, Support Resistance Channels, Market Structure Break & Order Block, Order Block Finder, Pivot Point SuperTrend, Trendlines with Breaks [LuxAlgo], Divergence for Many Indicators, TradingView script selling terms, Support and Resistance Levels with Break, Liquidity Swings [LuxAlgo], Pine Script errors, Breakout Probability (Expo), Did ChatGPT or Claude write your Pine Sc, Lorentzian Classification, SuperTrend AI (Clustering), Machine Learning Adaptive SuperTrend, Dynamic Swing Anchored VWAP, Support and Resistance Power Channel by , Support and Resistance (High Volume Boxe, Trendline Breakouts With Targets by Char, Breakout Finder by LonesomeTheBlue, Volume Flow Indicator by LazyBear, FVG Order Blocks by BigBeluga, CM_Williams_Vix_Fix by ChrisMoody, Bollinger + RSI Double Strategy by Chart, Ultimate Moving Average MTF by ChrisMood, Fibonacci Bollinger Bands by Rashad, Candlestick Patterns Identified by repo3, MACD + SMA 200 Strategy by ChartArt, Pine Script v5 to v6, Moving Average Cross Alert, Multi-Timefr, WaveTrend Oscillator [WT] by LazyBear, CM_Price-Action-Bars by ChrisMoody, RSI Candles by glaz, CM RSI-2 Strategy Lower Indicator by Chr, CM Stochastic Multi-TimeFrame by ChrisMo, CM_Ultimate RSI Multi Time Frame by Chri, TonyUX EMA Scalper - Buy / Sell by tux, MACD 4C by vkno422, My Pine Script is valid. What did the va
Get the next teardown by email
One short email when a new teardown or free tool goes live, about twice a month. No signals, no hype. Unsubscribe in one click.
Almost done. Check your inbox and click the confirmation link.
Sent with Kit. Your address is used only for these emails. Privacy
No TradingView account yet? This affiliate link gives you a $15 coupon toward a paid plan, and we earn a commission if you buy one. The free plan is enough to follow this page.