OPEN-SOURCE SCRIPT
Actualizado Triple Lens by MOU

Triple Lens by MOU
After spending years burning money on candlestick patterns, MACD crossovers, and Elliott Waves, I came to a simple conclusion: most retail technical analysis has been arbitraged into oblivion by quant funds. What survives — and what still works — sits in three places that machines can't fully eat: trend stage, accumulation pattern, and market breadth.
This indicator is what I built for my own trading. It overlays three independent frameworks from three legendary technicians:
Stan Weinstein — Stage Analysis (where are we in the cycle?)
William O'Neil — CANSLIM accumulation (is smart money building?)
Walter Deemer — Market Breadth (is the broader tape supporting us?)
Each lens looks at a completely different dimension. When all three light up green at the same time, you get a ▲ signal on the chart. That's the moment to pay attention.
Why three? Because any single indicator gets gamed. But three independent signals confirming the same direction is a different statistical animal — it's confluence, not coincidence.
One thing I want to be honest about: this isn't a crystal ball. Technical analysis cannot predict the future, period. What a good system can do is take you from 50/50 coin-flip entries to maybe 60-70% odds. That's it. But over hundreds of trades, that edge compounds — and that's where real wealth is built.
A ▲ signal is your green light to consider entering, not a guarantee that you'll win every time. Sizing, stops, and risk management still matter.
Important: This indicator goes blind during earnings. Earnings re-price the fundamentals — and technical analysis is built on the assumption that fundamentals are stable. If a ▲ fires right before an earnings call, wait it out. Let the dust settle, then re-evaluate.
Free to use. No tweaking needed. Built for swing and position traders on daily/weekly timeframes.
If this helps you, drop a boost. If you have feedback, comments are open.
— MOU
After spending years burning money on candlestick patterns, MACD crossovers, and Elliott Waves, I came to a simple conclusion: most retail technical analysis has been arbitraged into oblivion by quant funds. What survives — and what still works — sits in three places that machines can't fully eat: trend stage, accumulation pattern, and market breadth.
This indicator is what I built for my own trading. It overlays three independent frameworks from three legendary technicians:
Stan Weinstein — Stage Analysis (where are we in the cycle?)
William O'Neil — CANSLIM accumulation (is smart money building?)
Walter Deemer — Market Breadth (is the broader tape supporting us?)
Each lens looks at a completely different dimension. When all three light up green at the same time, you get a ▲ signal on the chart. That's the moment to pay attention.
Why three? Because any single indicator gets gamed. But three independent signals confirming the same direction is a different statistical animal — it's confluence, not coincidence.
One thing I want to be honest about: this isn't a crystal ball. Technical analysis cannot predict the future, period. What a good system can do is take you from 50/50 coin-flip entries to maybe 60-70% odds. That's it. But over hundreds of trades, that edge compounds — and that's where real wealth is built.
A ▲ signal is your green light to consider entering, not a guarantee that you'll win every time. Sizing, stops, and risk management still matter.
Important: This indicator goes blind during earnings. Earnings re-price the fundamentals — and technical analysis is built on the assumption that fundamentals are stable. If a ▲ fires right before an earnings call, wait it out. Let the dust settle, then re-evaluate.
Free to use. No tweaking needed. Built for swing and position traders on daily/weekly timeframes.
If this helps you, drop a boost. If you have feedback, comments are open.
— MOU
Notas de prensa
Here's the English version ready to paste into TradingView's publish description:📌 Triple Lens Framework v2 — A resonance system that combines Weinstein's stage analysis, O'Neil's accumulation/distribution, and Deemer's market breadth into a single decision layer.
Design Philosophy
Every single indicator has blind spots. The 30-week MA tells you what stage the trend is in, volume tells you what smart money is doing, and breadth tells you whether the environment supports it. Only when all three align do you act. That was the core of v1.
v2 fixes the most important weakness of v1: downtrend detection was too slow. The original logic required close < MA30 + slope < 0 simultaneously — by the time both conditions trigger, the decline is often 30% in. This version restores what Weinstein's original book emphasizes but most coded versions skip: Stage 3, the distribution top.
The Three Lenses
▸ Lens ① — Weinstein Stage Analysis (weekly)
Stage 2 (Advancing): close > 30W MA + slope up
Stage 3 (Distribution Top, new in v2): close > 30W MA + slope flattening + distribution days accumulating
Stage 4 (Declining): price breaks below MA by 3% buffer with slope down, OR ≥5 distribution days with close below MA — dual trigger
Stage 1 (Basing): flat MA + price hugging the line
▸ Lens ② — O'Neil Accumulation/Distribution
Net accumulation days ≥ threshold over 25 sessions → institutional buying
Distribution days ≥ 4 → top warning (feeds Stage 3)
Distribution days ≥ 5 → confirmed selling (feeds Stage 4)
▸ Lens ③ — Deemer Market Breadth (S5FI)
S5FI hit <30 in last 30 days + currently >50 → breadth recovering (buyable environment)
S5FI hit >70 in last 30 days + currently <50 → breadth deteriorating (top warning)
What's New in v2
Stage 3 distribution top — orange shading + "Reduce" arrow signal
Stage 4 tightened with OR logic — either price breaks the MA by 3% with slope down, or distribution days ≥5 with close below MA
Slope window shortened from 5 weeks to 3 weeks for faster trend-reversal detection
Breadth overheating warning added (isBreadthBearish)
Dual alert system — separate alerts for entry resonance and early exit
Usage Notes
Timeframe: Daily chart. The 30-week MA is pulled automatically via request.security — no need to switch to weekly view.
Position mapping: Stage 2 + triple resonance → enter; Stage 3 or breadth deterioration → trim 50%; Stage 4 → exit.
Tuning: For high-beta names try breakdown_buffer 0.03 / dist_threshold 3. For mega-cap leaders, loosen to 0.05 / 4.
Where it fails: Crash-style or carry-unwind events (e.g. March 2020, August 2024) that skip Stage 3 entirely. The lenses will lag — risk management has to do the work the system can't.
Inspiration
Stan Weinstein — Secrets for Profiting in Bull and Bear Markets (1988)
William O'Neil — How to Make Money in Stocks
Walter Deemer — Market breadth methodology
— MOU Investment · Companion tool to Investing for Joy, 2nd Edition
Indicators don't predict the market — they describe it. Triple Lens doesn't tell you what to buy. It tells you when not to.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.