{% from "_macros.html" import tri, popover %} {% if not coh %}

Insufficient history for coherence.

{% else %} {# Coherence ring + tri-badge + summary line #} {% set coh_pct = (coh.score * 100)|round|int %} {% set ring_circumference = 226.2 %} {% set ring_offset = ring_circumference - (ring_circumference * coh.score) %}
{{ "%.2f"|format(coh.score) }}coh
{{ tri(badge) }}

Multiplier ×{{ "%.2f"|format(coh.multiplier) }}. {% if coh.fallback_used %}{{ coh.fallback_used }}{% endif %}

{% call popover("How we got " ~ ("%.2f" | format(coh.multiplier)) ~ "×", anchor="coherence") %}

Coherence multiplies the engine score by how strongly the weekly, daily, and 4-hour timeframes agree on the same wave count. High agreement = high confidence the count is real, not a chart artifact. The pairwise scores below show each timeframe pair's contribution.

{% endcall %}
{% for k, v in coh.pairwise.items() %} {{ k }}: {{ "%.2f"|format(v) }} {% endfor %}
{% endif %}