PROTECTED SOURCE SCRIPT
已更新

HEKO-Acumulación/Distribución/Objetivo

212
HEKO — Accumulation / Distribution / Targets + Pi-Cycle is an all-in-one indicator designed for anyone who wants to spot smart-buy zones (accumulation) and smart-sell zones (distribution), filter them with simple rules, and turn them into quantified targets (blue triangle)—all without prior knowledge.

What it does, in 4 points

Detects candles with buying traits (high volume, high close, positive CMF, non-extreme RSI) and selling traits (upper rejection, low close, negative CMF, high RSI).

Filters signals to show them only when price is below all the 200s (green) or above all the 200s (red), reducing “noise” in the middle zones.

Generates automatic targets from the day’s high of the green signal (visible point), and confirms with a blue triangle when that target is reached.

Logs and numbers each green-point ↔ blue-triangle pair, adds a target average, simulates an educational assessment, and optionally marks tops with Pi-Cycle.

Recommended workflow

Turn on the moving averages (MA1…MA5) and the 200-channel filter (recommended).

Adjust sensitivity: volume (multipliers), closePct (80–90%), wickFrac (35–50%), RSI Low/High if you want to filter extremes.

Watch for green signals below the 200 channel. When one appears, the system sets a target (= day’s high × (1 + %)).

Wait for the blue triangle. When it touches the target you’ll see it on price and, if you want, in the panel as well.

You can number each green-blue pair for tracking.

Use Pi-Cycle as a macro top alert (especially in BTC/crypto or, with stock mode, in equities).

Check the TG average and, if useful, the assessment (simulation) to feed back into your parameters.

Key options and why they matter

200 channel (4h and 1D): separates “cheap zones” (green) from “expensive zones” (red).

CMF and volume: quantify whether buying/selling shows real commitment.

Close within the candle: avoids “indifferent” candles and favors decisive ones.

Targets from the daily high: reduces “close” bias and gives realistic room for the chosen %.

Point-triangle pairing: traceability. You know which target comes from which signal.

Pi-Cycle: cycle warning that helps you avoid “falling in love with tops.”

Best practices

Start conservative (default parameters).

Adjust mult and closePct if you see too many or too few signals.

In very volatile assets, raise wickFrac and multDist for reds.

Review the TG average per asset: it guides you on whether your target % is ambitious or too low.

Remember: this is not a complete strategy; it’s a reading and targeting tool. Use it with risk management and your own plan.

Limits and reminders

No indicator eliminates false positives. Filters only reduce noise.

Targets are triggered by the candle’s high. A spike can hit the % instantly.

Pi-Cycle isn’t magic. It’s a historically sensible pattern—useful as an alert, not as dogma.

版本注释
HEKO – Accumulation / Distribution / Targets / RSI (with Pi-Cycle Tops & Valuation)
Complete Market-Cycle Detection Tool

This script combines technical, volume-flow, momentum and cycle-based signals into a single unified framework designed to detect accumulation phases, distribution events, trend strength, price targets, and overbought/oversold episodes directly on the chart.
It also includes optional fundamental valuation bands, Pi-Cycle Top detection, and a detailed trade-simulation HUD.

🔵 1. Accumulation Detection (Green Signals)

The indicator identifies high-confidence accumulation events using:

Volume expansion vs. SMA

Positive CMF (money flow pressure)

Candle closing in the upper range

Optional RSI filters

Optional ATR / Z-score filters

Optional MA-alignment (fast MA above slow MA)

Optional condition: price must be below all 200-period moving averages (4h & 1D)

These events can generate price targets (+X%) and matching triangle markers.

🔴 2. Distribution Detection (Red Signals)

Distribution is detected using:

High volume vs. reference average

Upper-wick rejection or weak close

Negative CMF

Optional RSI high filter

Optional ATR / body-size filters

Optional MA-alignment

Optional condition: price must be above all 200-period moving averages

Distribution marks potential exhaustion zones and can also interact with Pi-Cycle logic.

📌 3. Target System (TG1 / TG2 / TG3)

When a Pi-Cycle distribution event triggers, the script calculates three targets automatically:

TG1 — EMA200 (4h)

TG2 — 50% retracement between peak and prior swing low

TG3 — Previous range high

Each target is drawn once and automatically removed when price closes below the level.

⚠️ 4. RSI in Price (Overbought / Oversold Episodes)

Instead of showing a separate RSI panel, the indicator plots OB/OS directly on price:

Arrows or horizontal segments

Continuous “episode ranges” during extended OB/OS phases

Optional labels (“OVERBOUGHT”, “OVERSOLD”)

Cooldown to avoid excessive signals

Optional filter requiring price to be outside 200-MA channel

🏷 5. Moving Averages (Highly Customizable)

Five independent MAs with:

Custom period

Custom timeframe

EMA/SMA type

Right-side labels with dynamic color

Optional band-fills between certain MAs

This makes it easy to follow major trend structure on any timeframe.

💰 6. Fundamental Valuation (Optional)

For stocks with available fundamentals, the script loads:

EPS (TTM)

Book Value per Share

Then computes:

Percentile-based valuation bands

“Cheap”, “Neutral”, “Expensive” states

p50 line

Highlighted “cheap zone” area on price

If fundamentals are unavailable, manual values can be entered.

📊 7. Evaluation HUD (Trade Simulation)

Optional HUD that:

Simulates a fixed-amount purchase on each accumulation signal

Sells half at the first target hit

Manages positions internally

Displays total invested amount and cumulative PnL

Integrated with the valuation HUD

🚨 8. Alerts

The script includes alerts for:

Accumulation events

Distribution events

TG target hits

RSI overbought/oversold signals

Pi-Cycle distribution start

🎯 9. Pi-Cycle Top Detection (BTC-style and 80/250 variant)

The script includes both classic and alternative Pi-Cycle calculations:

111 / 350 SMA (classic Bitcoin top model)

80 / 250 SMA (multi-asset friendly)

When triggered, the zone is highlighted and the TG system is activated.

✔️ Summary

This tool provides a complete market-cycle framework:

Where accumulation begins

Where distribution emerges

Where major tops form

How far price may retrace

Whether the asset is fundamentally cheap or expensive

How much profit a systematic strategy could generate

Designed for traders who want clarity, structure and high-signal information directly on their chart without extra panels.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。