@mirzaanugerah87
4 h on charts
3 scripts

Adaptive linear regression channel (OLS or volume-weighted) with R²-scaled bands and OB/OS zones, four-layer market structure (BOS/MSS, draw-on-liquidity) on a custom epoch lattice, HTF candle panel with price-feed coloring, sweep reversal zones with long/short colors, and a Kalman-filtered ATR ribbon. No-repaint structure detection, two-tier reversal signals with sweep confluence, and full alerts. Research tool, not financial advice.

Genesis Time Cycles — Time-Anchored Cycle Structure & Key Time Windows A time-first market structure tool. Instead of relying on broker sessions or candle counts, every cycle in this indicator is anchored to a single, user-defined Time Anchor (server time, local midnight, or a fully custom epoch), so all tiers share one coherent fractal lattice — from a 28-minute nano cycle up to a 64-year macro ladder. Cycle Structure (Time × Price framework): Fractal cycle tiers across QT (÷4) and TT (÷3) modes: micro (90m/22.5m), minor (6H), weekly , monthly, quarterly, yearly, and the macro ladders (4Y/16Y/64Y, 3Y/9Y/27Y) Absolute vs session lattice: Absolute mode anchors tiers to the real-time week grid (28m/112m/7.5H — weekend-agnostic, auto-scaled on 24/7 crypto), while non-absolute anchors them to the trading day (22m/90m/6H — session-relative) Cycle separators, open lines, and indexed labels (e.g. 112m3) — you always know which cycle you are in and where it opened Previous cycle high/low liquidity lines, drawn from the moment the pivot occurred and extended right — the levels the market is drawing toward On-chart cycle boxes with live progress per tier, colored by cycle position Anchor-aware triggers that respect weekends, 24/7 crypto sessions, and DST shifts — no mid-bar repainting Key Time Windows (TW): Define up to 10 custom intraday windows. Each window tracks its box range, pivot high/low, midpoints (with optional stop-on-mitigation), and a live range table with averages — ideal for marking manipulation and expansion hours. Institutional Price Feed: Bar coloring classifies every candle as expansion, base, clean base, inside bar, or trap — a quick read of intent behind each bar. Powered by the open GenesisTimeCycle library (time engine). No signals, no directions — a clean structural map to support your own analysis across FX, gold, indices, and crypto. Non-repainting structure detection. Works on any timeframe.

A precision time-engine library that turns any chart into a structured cycle lattice. Instead of relying on broker sessions or calendar boundaries, GenesisTimeCycle anchors every cycle tier to a single, user-defined Time Anchor (a custom epoch or midnight open), so all time frames share one coherent, fractal structure — from a 28-minute micro cycle up to a 64-year macro ladder. What it computes — in a single call per bar: AnchorState: all anchor timestamps and elapsed-time offsets for Daily, Weekly, Monthly, 10-Day Cadence, Yearly, and the fractal year ladders — QT (4Y/16Y/64Y) and TT (3Y/9Y/27Y) Fiscal calendar: fiscal month, fiscal year number since epoch, and cadence index derived from the anchor — not the calendar 34 cycle trigger flags (isnewd, isnewdqmicro for the 112m micro tier, isnewdqmicromicro for 28m, weekly QBox, nano tiers and more), each handling weekend gaps, 24/7 crypto sessions, and epoch-bar alignment so a new cycle never fires mid-bar or repaints CycleEntity: an OOP state object per tier that tracks the current and previous cycle open, high, low, and their timestamps — updated with one method call Three anchor modes: SERVERTIME (broker/chart timezone), MIDNIGHTOPEN (local midnight), and CUSTOMEPOCH (any date/time you choose — e.g. a historical market epoch). All downstream boundaries follow the same anchor, with bulletproof modulo math that survives DST shifts and weekend gaps. Design goals: deterministic and non-repainting (triggers are bar-close safe), crypto- and FX-aware, and zero drawings — the library returns pure state, so your indicator decides exactly what to plot. Tokens live in the library, keeping your calling script small. Typical uses: cycle separators and tiered high/low projections, time-of-cycle dashboards, regime gating for strategies, confluence timing filters, or any system that needs "where are we in the cycle?" answered consistently across timeframes. Import, call once per bar at global scope, read the flags
import u_ff7cbc86901dc021/GenesisTimeCycle/1 as lib