import u_ff7cbc86901dc021/GenesisTimeCycle/1 as libNov 14, 2026
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 (is_new_d, is_new_dq_micro for the 112m micro tier, is_new_dq_micro_micro 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: SERVER_TIME (broker/chart timezone), MIDNIGHT_OPEN (local midnight), and CUSTOM_EPOCH (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
Sign in to comment.
No comments yet.
Disclaimer: scripts are made by TradeUniv users, not by TradeUniv. They are not financial, investment or trading advice. Test anything before you rely on it.